we re facing a problem in our project.whenever we program an eprom(IC ST62E20c) .our program runs correctly.But whenever we make the supply of & then again if we on the supply & try the program.The same hardware & same IC gives problem.again after some time.The program works well.
so It works sometimes & sometimes not. we also tested our hardware & connectors.But there is no problem. Is the problem with the IC? Can the Eprom IC give problem like this if it is erasred & programed lot of times???? -rinku
Your problem sounds like it may be related to uninitialised RAM? The contents of the RAM is unknown at power-up. If you are relying on some value there, you may get unexpected results. I do know that a few people have had to program old Eprom parts a few time to get them to program successfully - although I don't think this is the problem. Simon
Using Ride, it is not mandatory to define the registers depending on the selected option. To enable automatic registers declaration check the box 'define symbols for the ST6 function registers' available in the menu Options>Project>MAST6>Source.
To get some source samples, I recommend you to download the ST6 Software Library package available on the web. In addition, the application note AN1369 provides some information on how to work with Ride. I had a look to your source code but the file is corruped. I did not notice big mistakes.
I'm attaching my code again here.So can u please have a look at it and suggest some modifications?
actually the problem is with the reset I think.b'coz when we try using watchdog registor,the program works but it is not giving expected results.It misses 5 to 6 ZCD pulses.& even the pulse width of the triac triggering pulse is 4.8msec .while we are giving it as 400usec. without using watch dog we r getting all the timing constraints correct but the problem is that the program sometimes works when we switch ON and some times it wont work when we switch it on. so we can't proceed further till we get a solution out of this. so please help us. -rinku
________________
Attachments : project.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0JZ&d=%2Fa%2F0X0000000bXB%2FRP8HvHHuaBasF.h43CWpaCW8TnAet_UjqdUY8Sxs82M&asPdf=false