Hi there!
I try in proteus something like this with PIC12F629:
Code:
trisio = %11111000
PORTA.0 = 1
pause 1000
PORTA.1 = 1
pause 1000
PORTA.2 = 1
pause 1000
I expected to make PortA.0 high, after 1 seconds to make PORTA.0 and PORTA.1 high and after another second to have all PORTA.0, PORTA.1, PORTA.2 high.
But the things works another way: after 1 seconds PORTA.0 become low and only PORTA.1 is high; after another 1 second, PORTA.0 and PORTA.1 become low and PORTA.2 is high.
I dont understand why making a bit high toggle low the rest.
Any ideea?
Thank you.
Bookmarks