This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C164 OTP programming

Hello!
I would like to program the OTP of a C164-controller the first time...-because I'm not so sure if I configured anything in the right way.So please could somebody take a look on this?:

The Pin EA will be hold high by a pull up resistor so it will be single-chip mode!-Does this mean,the BUSCON registers don't need to be handled (like waitstates...)?

I've read,the CAN module needs two waitstates,but isn't it hardwired configured so thát this is just an information?

Clockkonfiguration is done by the Keil 'OPTION FOR TARGET' menu-I think this works well for the OTP too?!
I think the configurations which are done by the startupcode and works well in simulator will do the same job using OTP?

Are there any other Pins which have to be pulled high??
Are there possibly registers I have to use only when the OTP is used for programm memory?I want to programm the OTP itself by the KITCON of Keil -I think the programming routine like in the manual will be done by the µVISION connected with the board?


I would be glad if somebody could help me and saves the Controller for beeing mistreated!

(P.S.special greetings to MR Bruno.C. who helped me last time!)

Parents
  • Hello Hannes,
    EA pin should be tied to +5V in order to execute internal ROM program, but it must be tied to Vpp (12V) when you program the chip, otherwise internal ROM will not be programmed.
    CAN controller is hardwired and already OK.
    You should use the Infineon Memtool to program the chip, it is available on the Infineon web page.
    When starting in Single Chip Mode, tha C164 does not read the configuration from P0, it starts using a default configuration that works in any case; I suppose you are now using a new C164 step (DA), so please read carefully User's Manual v.3.1, Chapter 20 (System Reset). Page 20-7 says that when EA = 1, the chip starts with the slowest possible configuration.
    You should write Clock configuration and any other 'P0' configuration into the RSTCON register just after reset, this should be done into the STARTUP file, before EINIT. You will have to bootstrap in a different way: pull down RD and ALE lines. Read paragraph 20.4.2 and the following pages. I hope you have more than just one OTP to burn, in case you will not reach the correct result at first time...
    Ciao Bruno

Reply
  • Hello Hannes,
    EA pin should be tied to +5V in order to execute internal ROM program, but it must be tied to Vpp (12V) when you program the chip, otherwise internal ROM will not be programmed.
    CAN controller is hardwired and already OK.
    You should use the Infineon Memtool to program the chip, it is available on the Infineon web page.
    When starting in Single Chip Mode, tha C164 does not read the configuration from P0, it starts using a default configuration that works in any case; I suppose you are now using a new C164 step (DA), so please read carefully User's Manual v.3.1, Chapter 20 (System Reset). Page 20-7 says that when EA = 1, the chip starts with the slowest possible configuration.
    You should write Clock configuration and any other 'P0' configuration into the RSTCON register just after reset, this should be done into the STARTUP file, before EINIT. You will have to bootstrap in a different way: pull down RD and ALE lines. Read paragraph 20.4.2 and the following pages. I hope you have more than just one OTP to burn, in case you will not reach the correct result at first time...
    Ciao Bruno

Children
  • Thanks !
    I will try this by the next days.I will use the old (BA-step) because I have it and thought about using it in a "fixed" object,so I can use the newer one for testing the next projects with an up to date-device.
    I hope I'm right,thinking that the jumper configation of the Kitcon Board pulls EA up to 12 V? and WR down to ground!
    I will follow your hints and try out allthough I've just one C164 I can use.
    Thanks again! hannes

  • I don't know the Kitcon board, just check if any +12V source exist; again, if you use the BA step, check the BA Errata Sheet and the user's manual, if I well remember there is again some difference with the DA step.
    I will check if I still have a BA errata in my office and if I find it I will send it to you.
    Ciao
    Bruno