Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).
|
hi Guys working on a project on 68hc12, have chosen 68hc12BC32, give me some help on programming the chip , or widely used programmers to program the chip. (flash or other methods). how do u guys program the controller. vijay Yahoo! India Matrimony: Find your partner online.Post your profile. [Non-text portions of this message have been removed] |
|
|
|
At 06:16 AM 12/29/2003 +0000, you wrote: > >working on a project on 68hc12, have chosen 68hc12BC32, give me some help >on programming the chip , or widely used programmers to program the chip. >(flash or other methods). how do u guys program the controller. Most of us use the BDM port, not only for debug, but also to program. Only other requirement is a well-controlled Vfp programming voltage. jmk ----------------------------------------------- James M. Knox TriSoft ph 512-385-0316 1109-A Shady Lane fax 512-366-4331 Austin, Tx 78721 ----------------------------------------------- |
|
|
|
Hi James, Could u tell me how to use BDM port for programming, debug the 68HC12BC32? I read that we can actually use Motorola SDI through BDM to replace the use of SCI port right? Pls give me some advice in this, thanks, VT --- In , "James M. Knox" <jknox@t...> wrote: > At 06:16 AM 12/29/2003 +0000, you wrote: > > > >working on a project on 68hc12, have chosen 68hc12BC32, give me some help > >on programming the chip , or widely used programmers to program the chip. > >(flash or other methods). how do u guys program the controller. > > Most of us use the BDM port, not only for debug, but also to program. Only > other requirement is a well-controlled Vfp programming voltage. > > jmk > ----------------------------------------------- > James M. Knox > TriSoft ph 512-385-0316 > 1109-A Shady Lane fax 512-366-4331 > Austin, Tx 78721 jknox@t... > ----------------------------------------------- |
|
|
|
At 06:08 AM 1/8/2004 +0000, you wrote: >Hi James, >Could u tell me how to use BDM port for programming, debug the >68HC12BC32? Although the specs on the BDM port are available in the Motorola hardware HC12 manual, you really do NOT want to get involved in designing your own interface (debug software and hardware device) if you can avoid it. Fortunately, there are several reasonably priced options available. o P&E Micro sells a little pod that connects between the parallel port of your computer and the BDM input of the HC12, and includes the software to do limited debugging. Unfortunately, the software itself has a fair amount of bugs and limitations, but once you get used to them you can get a lot done. It's still a reasonable value. o Motorola has a small development board for the HC12 that can, in turn, be used as a BDM interface to another HC12. I've never tried it, but I do have one of the boards and there is definitely a BDM out as well as in. o There are others, including a very inexpensive board (from Oliver?) that is probably better the Motorola one, and also I believe has the capability. Personally, I live with the P&E for most work. - - - On your target board, design the BDM interface pretty much as per the Motorola spec sheet. It's just a couple of resistors and a diode and a capacitor. A reset chip (shown in some of their examples) makes for a more secure environment, but make sure that the BDM debugger can still pull the RESET* line. A word about the diode. Do not leave it out. It's important. In a pinch a 1N914 will do, but the suggested Schottky diode is a much better choice (lower forward voltage drop). >I read that we can actually use Motorola SDI through BDM >to replace the use of SCI port right? I guess I am not sure what you mean. Replace it to do what? Certainly to replace the serial port for a serial debugger. There is very little the average serial mode debugger program could do that can't be done better (and faster) over the BDM. Hope this helps... jmk ----------------------------------------------- James M. Knox TriSoft ph 512-385-0316 1109-A Shady Lane fax 512-366-4331 Austin, Tx 78721 ----------------------------------------------- |
|
|
|
--- In , "James M. Knox" <jknox@t...> wrote: > Personally, I live with the P&E for most work. I'm using the T board in conjunction with Noice, works well. > secure environment, but make sure that the BDM debugger can still pull the > RESET* line. > A word about the diode. Do not leave it out. It's important. In a pinch a > 1N914 will do, but the suggested Schottky diode is a much better choice > (lower forward voltage drop). I looked high and low but have nor been able to find a diode in the circuit. Doesn't look like the T board uses one either. Reading between the lines this diode you mention could be around the reset circuit/Pod interface as some sort of OR gate? Circuits I have seen all use resistors there. Cheers, Theo |
|
|
|
At 07:33 PM 1/8/2004 +0000, you wrote: > > A word about the diode. Do not leave it out. It's important. In a > pinch a > > 1N914 will do, but the suggested Schottky diode is a much better choice > > (lower forward voltage drop). > >I looked high and low but have nor been able to find a diode in the circuit. Memo to self: In the future, do not talk about two things in the same sentence. <G> The diode I was referring to always shows up in the schematics I draw as part of the BDM interface (on the target board) since that's what programs the uC, but it could be drawn most anywhere. It's the diode between Vdd and Vfp. Vfp is spec'd on the low end as Vdd - 0.35 volts. The diode keeps it there when programming voltage is not applied. I used a 1N914 for years without any obvious trouble (at low current the 914's voltage drop is right on the edge), but technically a Schottky diode is better. Sorry for the confusion. jmk ----------------------------------------------- James M. Knox TriSoft ph 512-385-0316 1109-A Shady Lane fax 512-366-4331 Austin, Tx 78721 ----------------------------------------------- |
|
|
|
--- In , "James M. Knox" <jknox@t...> wrote: > Memo to self: In the future, do not talk about two things in the same > sentence. <G> It has become clear. Just that I committed my board for manufacture and had no diode anywhere near the reset circuits, phew. There was some frantic searching here:-) Cheers, Theo |
|
|
|
At 08:01 AM 1/9/2004 +0000, you wrote: >It has become clear. > >Just that I committed my board for manufacture and had no diode anywhere >near the reset circuits, phew. >There was some frantic searching here:-) In the words of the late Emily Latila (Saturday Night Live): "Oh, that's very different. Never mind!" Sorry... <G BTW, one reason it's part of my BDM interface is that (on HC12B32 boards) I bring the 12 volt Vfp in on an unused pin. Since Vcc is already on another pin, I just logically drop the diode there between the two. jmk ----------------------------------------------- James M. Knox TriSoft ph 512-385-0316 1109-A Shady Lane fax 512-366-4331 Austin, Tx 78721 ----------------------------------------------- |
|
Thanks alot for your reply, In my last post, I said I need to use "Motorola SDI" to replace the use of SCI port. This means I am now using a debugger program that communicates with the HC12 board through SCI port. But then I need to use the SCI port for other purpose, that's why I need to find another way to program and debugger the HC12 NOT through SCI port. And then I try with the Motorola SDI through BDM. It seems to be that P&E Micro is the only one that supports Motorola SDI. But my P&E debugger program is spoilt...trying to find others. VT --- In , "James M. Knox" <jknox@t...> wrote: > At 06:08 AM 1/8/2004 +0000, you wrote: > >Hi James, > >Could u tell me how to use BDM port for programming, debug the > >68HC12BC32? > > >I read that we can actually use Motorola SDI through BDM > >to replace the use of SCI port right? > > I guess I am not sure what you mean. Replace it to do what? Certainly to > replace the serial port for a serial debugger. There is very little the > average serial mode debugger program could do that can't be done better > (and faster) over the BDM. > > Hope this helps... > jmk > ----------------------------------------------- > James M. Knox > TriSoft ph 512-385-0316 > 1109-A Shady Lane fax 512-366-4331 > Austin, Tx 78721 jknox@t... > ----------------------------------------------- |