armghan11
Member level 1
Here is the simple program i am using to blink led on pin B0 but i want to blink led on all the 8pins of Port b.... is there any simple way to set all the pins of port b to high... or i have to do it one by one
Code:
#include <16F887.h>
//#FUSES NOWDT, HS, NOMCLR, NOBROWNOUT, NOIESO, NOLVP
#use delay(clock=20000000)
void main() {
while (TRUE) {
output_high(Pin_B0);
delay_ms(100);
output_low(PIN_B0);
delay_ms(100);
}
}
Last edited: