Search found 6 matches

by GrahamB
Fri Feb 11, 2011 2:45 am
Forum: MegaSquirt® Embedded Code
Topic: Serial communications with MS II
Replies: 3
Views: 2416

Re: Serial communications with MS II

Has anyone experimented with the loop mode in the 68HCS12?
In principle, if you set bit 5 in SCICR1, and enable both the rx and tx bits (2 & 3) in SCICR2,
the chip should simply return any message it receives exactly as though you had bridged the corresponding pins
on the socket... but maybe it also ...
by GrahamB
Mon Jan 17, 2011 3:09 am
Forum: MegaSquirt® Embedded Code
Topic: custom MS-II code
Replies: 5
Views: 2850

Re: custom MS-II code

Oops, Ok... of course there is the 64K of Flash, but also the 4K of RAM and the EEPROM. Soooo if I use -Ms then I can't access
all of the flash.

Otoh, using the free version of CW it makes no difference to me, since I can only generate 32K of code. So even if I use the banked model,
I might as well ...
by GrahamB
Mon Jan 17, 2011 2:06 am
Forum: MegaSquirt® Embedded Code
Topic: custom MS-II code
Replies: 5
Views: 2850

Re: custom MS-II code

The HCS12 memory structure is a nightmare because its Paged memory is a kluge and because it is very poorly documented.

Glad it's not just me. For general information, I found the following Motorola app note (AN2216/D) which explains it relatively well:
http://www.datasheetarchive.com/AN2216 ...
by GrahamB
Sun Jan 16, 2011 12:59 pm
Forum: MegaSquirt® Embedded Code
Topic: How does AMC burn flash with engine running?
Replies: 2
Views: 2362

Re: How does AMC burn flash with engine running?

Ah! So to be clear, if I'm erasing one sector, I can't read any sector... and this is why the assembler jump to the burn program in ram is necessary?

So typically, a 20ms glitch would be enough to lose synch to a toothed wheel, and an ign_reset will be needed before things can get back to normal ...
by GrahamB
Sun Jan 16, 2011 11:43 am
Forum: MegaSquirt® Embedded Code
Topic: How does AMC burn flash with engine running?
Replies: 2
Views: 2362

How does AMC burn flash with engine running?

Hello,
Just a naive question as I try to understand how the microsquirt/MSII code (2.891) works.
I get the basic idea that there are two copies of the structs, one each in flash and ram
(haven't quite figured out how they are placed appropriately, but maybe when I eventually understand memory paging ...
by GrahamB
Thu Nov 04, 2010 10:55 am
Forum: MegaSquirt® Embedded Code
Topic: Updating .h etc files in project?
Replies: 1
Views: 487

Updating .h etc files in project?

Hello,
I'm a noob, so please forgive some naivety...

I've just tried "make"ing the ver 2.891 code in the free version of Codewarrior 5.90
I get lots of undeclared variable and type mis-match errors. I fixed some of them by searching
the megamanual site and discovering that the timer variables pTC0 ...