> It's never useful to say "nothing worked". Firstly - did you start the > program running? Did you single step to confirm that it executes the code > you wrote? Yes I Did. >Did you examine the contents of TRISA and PORTA to see if the > bits actually changed? Yes they changed! >When using the PICMaster you can do this - it's not > like you're just programming a ROM and turning it on.... > Maybe the lines like "bsf rp0" should be "bsf status,rp0". But your message > should be much more detailed when asking for help.I use #define rp0 as status,5 I selected internal Crystal (4MHz in Y1), I set oscillator mode to XT (and to HS also), I selected +5V SYS. When I use Window->Program Memory, the correct code appears. It looks very strange. Thanks for answering, Any help appreciate Jorge Cabral