Timeline for PIC10F206 MPLAB X IDE v5.40 - Light a LED
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 14, 2020 at 21:15 | history | edited | glen_geek | CC BY-SA 4.0 |
change code to toggle GP1
|
Aug 14, 2020 at 21:09 | comment | added | glen_geek | debugging:(1) Did the chip get programmed? (2)Does the chip execute (is its clock running? (3) is GP1 an output, and is it logic low? (4) is the LED good?. These chips default to having MCLR pin active (unless you force it to be internally tied high). Try tying MCLR pin to Vdd, just in case it is active. Your program is a good one to test assemble/program/run. I've changed the code so to toggle GP1 between "high" & "low" very quickly. | |
Aug 14, 2020 at 20:17 | comment | added | theerrormagnet | I think the LED was just lit because the GP1 (which is PGC) was set to pull-down resistor in the Project Properties. Now I have set it to pull-up resistor and it does not light anymore. And I could not make it light up with your code. | |
Aug 14, 2020 at 14:15 | history | edited | glen_geek | CC BY-SA 4.0 |
added code
|
Aug 14, 2020 at 13:28 | comment | added | glen_geek | Your programmer uses that same pin (GP1) to write code to P10F206 - it should release that line once it is done. Perhaps not. Your test with the 5V supply is the one you should pay attention to, and debug. | |
Aug 14, 2020 at 13:01 | comment | added | theerrormagnet | The weird thing is, at the moment the led lights up even without any code as long as it is attached to my PC. But when I disconnect the PICkit4 and connect a 5V power supply to the P10F206 the LED does not light anymore. | |
Aug 13, 2020 at 20:30 | history | edited | glen_geek | CC BY-SA 4.0 |
other pic processors have addressable direction control register
|
Aug 13, 2020 at 20:23 | history | answered | glen_geek | CC BY-SA 4.0 |