Skip to main content

New answers tagged

3 votes
Accepted

How the GPIO works internally?

Consider "port B". On the ATmega328p, this consists of 8 I/O pins PB7 to PB0. On the ATtiny85, it's the 6 I/O pins PB5 to PB0. At the "software level", these are controlled by ...
K. A. Buhr's user avatar
1 vote

How the GPIO works internally?

As a background, writing the PINx register toggles the IO pins you selected. And the system bus provides the bit of the data you write when writing to PINx register. Just like it does when you write ...
Justme's user avatar
  • 159k
0 votes

PIC16F26K83 ADC reading and LCD interface

Two reasons why the line could be blank. First of all, the code will halt indefinitely if the GO bit never drops. If your code prints "Hello" and it never changes, the code is stuck waiting ...
Justme's user avatar
  • 159k
0 votes

PIC16F26K83 ADC reading and LCD interface

You need to add null termination to the data to be sent to the LCD so the write function knows where to stop. When you use a character array, C puts that in there for you.
Spehro Pefhany's user avatar
1 vote
Accepted

The LED does not blink with PIC16F84A-201/P

The PIC seems to have no clock source at all, if your PCB does not provide one already or assumes the user to solder in a clock circuit for the PIC. The board mentions a ceramic resonator and has a ...
Justme's user avatar
  • 159k
0 votes
Accepted

SPI flash memory (AT26DF161A) with PIC16F883 write wrong data in memory and Manufacturer ID is wrong

Finally, I've changed the power source of the PIC from 5V to 3,3V. I have removed all the attenuators and the memory started working ok. I thought that at 125kHz the resistors attenuator would work ...
Hernan Couto's user avatar

Top 50 recent answers are included