pic16f627 with internal osc, icprog, picbasic pro, jdm programmer
first of all without any serial stuff:
This makes the led not full brightness, but I would say about theird to half on, why? it should be only 1/255th on, so hardly visible.
Then when I put a hserin command in between pauseus55 and goto loop, it makes it full brightness, almost like the command is waiting a long while, I thought hserin didn't do this, just passed the command to the hardware usart and carried on with the program pretty quickly?
first of all without any serial stuff:
Code:
aval var byte
aval = 0
loop:
low portb.0
for i = 255 to 0 step -1
if aval = i then
high portb.0
endif
pauseus 39
next i
pauseus 55
goto loop
This makes the led not full brightness, but I would say about theird to half on, why? it should be only 1/255th on, so hardly visible.
Then when I put a hserin command in between pauseus55 and goto loop, it makes it full brightness, almost like the command is waiting a long while, I thought hserin didn't do this, just passed the command to the hardware usart and carried on with the program pretty quickly?