nobody wrote on Tuesday, August 09, 2005:
I am working with an ATmega128 chip that has 64KB external memory. I would like to be able to configure the program to use some of this memory. Any ideas on how to access that memory and use it?
Also, I want to be able to access only one pin instead of the whole port. I have used DDRB to set the direction of a port and PORTx to set a port. I see there is a definition for PINx, and there are some #defines in the following manner -
#define PINB7 7
If I have PINB = 0 in my code, then I come up with no errors, but this does not specify a pin. If I have PINB7 in my code, then I come up with error messages.
How do I specify which pin I want?
Thanks for any and all help. It is always much appreciated.