reading from eprom is working but when i try to read 15address location and save them one by one in array its not working...this example is not working can enybody tell me what is wrong in this code...on PIC simulator IDE v6.34 on
var led[15] led board gives me sign on PORTB $0F instead $FF
define OSC 8
TRISB = $00
PORTB = $00
i var byte
led var byte [15]
led[0] = %00000001
led[1] = %00000010
led[2] = %00000100
led[3] = %00001000
led[4] = %00010000
led[5] = %00100000
led[6] = %01000000
led[7] = %10000000
led[8] = %10000001
led[9] = %10000010
led[10] = %10000100
led[11] = %10001000
led[12] = %10010000
led[13] = %10100000
led[14] = %11000000
led[15] = %11111111
loop:
for i = 0 to 15
PORTB = led[i]
Next i
goto loop
PIC16F84A
Bookmarks