Steve,
See: here
Steve,
See: here
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Cheers, Ralph i did see that thread. The only reason i asked is that after the 'reset', the program was behaving strange on some of the outputs. During a normal power-up, ie power added to device, it performs a short LED PWM routine. Where an LED is illuminated for about 1 second at a preset brightness level, say 25%. After the 1 second, the LED goes out.
However, after the SoftwareReset routine has been activated, the same PWM routine is run, the LED is displayed at the 25% brightness, but instead of the then going out it stays on at full brightness, as if that PIN is now held High.
Thats why i asked if i was missing something. Does it actually perform a 'proper' reset as if using the MCLR PIN? Or do i need to do something else? I didn't want to use the addition of another Port Pin to "write" PortA.X = 0 to make a software reset if could do it in code.
Cheers,
Steve
Steve,
as already mentioned, this is a "feature" of PWM
see PBP Manual section 5.61
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Bookmarks