55Views2Replies

Author Options:

PROGRAMMING PIC MCU TO RETURN TO PREVIOUS ADDRESS Answered

 HI GUYS, I NEED HELP HERE WITH CODE TO FLASH LEDS USING SWITCH STATEMENT, I`M NEW IN PROGRAMMING AND LEARNING THIS ON MY OWN, I KNOW HOW TO FLASH LEDS AND SET DIFFERENT FLASH PATTERNS, MY PROBLEM IS WHEN I SWITCH OFF MY LEDS/POWER  LETS SAY ON SWITCH CASE 5 AND SWITCH POWER BACK ON, MY PROGRAM GOES BACK TO SWITCH CASE 1, HOW DO I PROGRAM IT TO RETURN TO SWITCH CASE 5 WHEN I SWITCH POWER BACK ON? I MEAN I WANT MY CODE TO START WHERE I LEFT IT BECAUSE I DON`T WANT THE USE TO SET PATTERN EVERYTIME HE/SHE SWITCH ON THE LEDS.
I`M USING PIC16F1782, PICKIT 3, MPLAB X IDE, MCC,XC8.
THANK YOU IN ADVANCE 

Discussions

0
Yonatan24
Yonatan24

3 years ago

PLEASE ADD BOLD ITALIC AND UNDERLINE CAPITALIZATION IS NOT ENOUGH THANKS

0
Downunder35m
Downunder35m

3 years ago

1. Write in proper sentences as i simply refuse to read this mess.
2. Include all relevant details as noone here is fully clairvoyant.