Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

Discussion Groups | 68HC12 | EEPROM on D60A

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

EEPROM on D60A - LUC DIETVORST - Feb 10 3:33:00 2003

Hello,

in the code of the ACPRD are functions used to read and write in the
EEPROM memory (readItemEETS and writeItemEETS).

The registers used in these functions don't exist in the D60A. Is it
also possible on the D60A to read and write to the EEPROM to save and
restore some variables?

Regards,

Luc Dietvorst





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )


Re: EEPROM on D60A - Oliver Thamm - Feb 10 16:00:00 2003


On Mon, 10 Feb 2003 12:33:33 +0400
"LUC DIETVORST" <> wrote:

> Hello,
>
> in the code of the ACPRD are functions used to read and write in the
> EEPROM memory (readItemEETS and writeItemEETS).
>
> The registers used in these functions don't exist in the D60A. Is it
> also possible on the D60A to read and write to the EEPROM to save and
> restore some variables? Luc,

NV memory in the D60A behaves totally different.
To write a byte (in accu B) to D60A EEPROM you could try something like
this (value in A, address in Y): ldab 0,y ; check if cell is already erased
cmpb #$ff
beq _peewrite
;
_peeerase ldab #%10010110 ; BULKP 0 0 BYTE !ROW ERASE EELAT !EEPGM
stab EEPROG ; Prepare Byte Erase
staa 0,y ; Dummy write to destination address
inc EEPROG ; Set EEPGM to start Erase
bsr wait10ms ; delay 10 ms
stab EEPROG ; Reset EEPGM
;
_peewrite cmpa #$ff ; skip write if Value2write=$ff
beq _peeDone
ldab #%10000010 ; BULKP 0 0 !BYTE !ROW !ERASE EELAT !EEPGM
stab EEPROG ; Prepare Byte Write
staa 0,y ; Write value to destination address
inc EEPROG ; Set EEPGM to start Write
bsr wait10ms
stab EEPROG ; Reset EEPGM
;
_peeDone ldab #%10000000 ; Default state (EELAT=0)
stab EEPROG Happy HC(S)12ing!
Oliver -----------------------------------------------------
*** Oliver Thamm's HC12 Web *** http://hc12web.de ***
-----------------------------------------------------





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: EEPROM on D60A - Oliver Thamm - Feb 10 16:09:00 2003


On Mon, 10 Feb 2003 22:00:57 +0100
Oliver Thamm <> wrote:

> (in accu B)

this is a typo, please ignore/delete

Oliver





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Arctan (Cordics?) - James M. Knox - Feb 10 18:21:00 2003


Again, trying to not reinvent the wheel, does anyone have an HC12, HC11,
(or pretty much anything else, for that matter) primitive for implementing
the arctangent?

Thanks...
jmk

-----------------------------------------------
James M. Knox
TriSoft ph 512-385-0316
1109-A Shady Lane fax 512-366-4331
Austin, Tx 78721
-----------------------------------------------





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: Arctan (Cordics?) - Edward Karpicz - Feb 10 23:26:00 2003

> Again, trying to not reinvent the wheel, does anyone have an HC12, HC11,
> (or pretty much anything else, for that matter) primitive for implementing
> the arctangent?

http://www.netlib.org/cephes/index.html

Good luck
Edward > Thanks...
> jmk
>
> -----------------------------------------------
> James M. Knox
> TriSoft ph 512-385-0316
> 1109-A Shady Lane fax 512-366-4331
> Austin, Tx 78721
> -----------------------------------------------




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

RE: Arctan (Cordics?) - Erich Styger - Feb 11 3:13:00 2003

Most compiler packages for HC11/HC12 today come along with source
code for the ANSI library: you will find there implementations.
Have a look.

Erich

> -----Original Message-----
> From: James M. Knox [mailto:]
> Sent: Dienstag, 11. Februar 2003 00:21
> To:
> Subject: [68HC12] Arctan (Cordics?) >
> Again, trying to not reinvent the wheel, does anyone have an HC12, HC11,
> (or pretty much anything else, for that matter) primitive for
> implementing
> the arctangent?
>
> Thanks...
> jmk
>
> -----------------------------------------------
> James M. Knox
> TriSoft ph 512-385-0316
> 1109-A Shady Lane fax 512-366-4331
> Austin, Tx 78721
> ----------------------------------------------- >
> --------------------------------------------------------
> To unsubscribe from this group, send an email to: > To learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )