//Problem: Connect a LED to port J bit 0. Glow LSB LED only (bit 0)
/* here port j is pin 14 -- pin 21
so port j bit 0 is pin 14 in hardware
in order to access those here direction register address is 104
port address is 105*/
void setup() {
// put your setup code here, to run once:
volatile char *dirj;
dirj = 0X104; //accessing DDR of J port
*dirj = 0XFF; // setting it as output
}
void loop() {
// put your main code here, to run repeatedly:
volatile char *portj;
portj = 0X105;
*portj = 0x01;
}