16F628A Port B connected LEDS
Posted: Thu May 14, 2009 7:45 am
Hi
I am simulating a 16F628a and i have leds connected to B0, B3, B4, B5. I wanted to flash these ports on and off about 4 times and then leave B5 on.
I tried this using port masking checking the ports listed above and also by trying by just selecting all ports without masking. the only port that flashes is B0. If on the other hand i just select one port at a time IE sat bit 3 on port B the led associated with that port flashes as expected.
My though is that the ports need telling that they are outlets but I can't see how to set that in the simulation mode.
Any ideas
Thanks and Regards
I am simulating a 16F628a and i have leds connected to B0, B3, B4, B5. I wanted to flash these ports on and off about 4 times and then leave B5 on.
I tried this using port masking checking the ports listed above and also by trying by just selecting all ports without masking. the only port that flashes is B0. If on the other hand i just select one port at a time IE sat bit 3 on port B the led associated with that port flashes as expected.
My though is that the ports need telling that they are outlets but I can't see how to set that in the simulation mode.
Any ideas
Thanks and Regards