My guesstimate: You don't have the JW part's window covered, so ambient light is working to clear the ram locations on the JW part. So now that you clear the OTP part via software, the otp part works. Try this: Disable the RAM clearing part of the code, write it to a JW part, and cover the quartz window. Bet you get the same symptoms you did with the OTP part Mark Willis, mwillis@nwlink.com, not that >I< would get nailed by this one Andre Abelian wrote: > > Hi to all engineers. > First I use an emulator if I have the header > after I get it done I use JW parts and final is OTP. > every thing worked except OTP part. I talked > to microchip engineer "jake" He recommended to > clear ram locations I did that it works now but I still > worry about my code. > > the purpose of this code is to get 8 bit data > under 1200 baud rate 1 start bit and 2 character stop bit > " is was not my idea " I am just made a receiver for it. > and two 7 segment multiplexed display. I used pic16c54a > > I have 3 questions > > 1. do you see any error in my code > 2. how to calculate or make sure I am running 1200 baud rate. > or how can I make sure the transmiter is sending 1200 baud rate. > how accurate baud rate like how many percent of error > will work fine. " I figured it out by changing the delay time. > 3. what is realy difference between JW and OTP why with out > clearing ram JW works but OTP do not. > > any help will appreciate. > > Andre Abelian > > ------------------------------------------------------------------------ > > Name: swtester.asm > swtester.asm Type: application/x-unknown-content-type-asm_auto_file > Encoding: base64