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

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

eeprom - Simi - Apr 28 7:05:58 2008

Has anyone written a simple writeEEPROM routine for the HCS12
processors they would like to post.please send to me

thanks
simi

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Scanning of this message and addition of this footer is performed
by E-mail Content Filter Software at ADA in conjunction with McAfee
Virus detection software
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[Non-text portions of this message have been removed]
------------------------------------



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


RE: eeprom - John Thompson - Apr 28 8:58:42 2008

Hi,

In 'C' or assembler?

I have routines in assembler.

-----Original Message-----
From: 6...@yahoogroups.com [mailto:6...@yahoogroups.com]On Behalf Of Simi
Sent: 28 April 2008 11:59
To: 6...@yahoogroups.com
Subject: [68HC12] eeprom

Has anyone written a simple writeEEPROM routine for the HCS12
processors they would like to post.please send to me

thanks
simi

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Scanning of this message and addition of this footer is performed
by E-mail Content Filter Software at ADA in conjunction with McAfee
Virus detection software
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

[Non-text portions of this message have been removed]

Click here to report this email as spam.

[Non-text portions of this message have been removed]
------------------------------------



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

RE: eeprom - MARC Erwan - Apr 28 9:18:15 2008

if C, what is your compiler? some of them integrate EEPROM data management =
(as e.g. cosmic with @eeprom qualifier), so you don't need extra code effor=
t (excepted if you really want to optimize operations).
Regards

________________________________

De : 6...@yahoogroups.com [mailto:6...@yahoogroups.com] De la part de S=
imi
Envoy=E9 : lundi 28 avril 2008 12:59
=C0 : 6...@yahoogroups.com
Objet : [68HC12] eeprom

Has anyone written a simple writeEEPROM routine for the HCS12=20
processors they would like to post.please send to me=20

thanks=20
simi=20

[Non-text portions of this message have been removed]

.
05/msgId=3D15883/stime=3D1209380755/nc1=3D3848621/nc2=3D4507179/nc3=3D40252=
91>=20
=20
DISCLAIMER:
This electronic transmission (and any attachments thereto) is intended sole=
ly for the use of the addressee(s). It may contain confidential or legally =
privileged information. If you are not the intended recipient of this messa=
ge, you must delete it immediately and notify the sender. Any unauthorized =
use or disclosure of this message is strictly prohibited. Faurecia does not=
guarantee the integrity of this transmission and shall therefore never be =
liable if the message is altered or falsified nor for any virus, intercepti=
on or damage to your system.
[Non-text portions of this message have been removed]
------------------------------------



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

Re: eeprom - Simi - Apr 29 1:50:07 2008


i am doing the program in c . i am using mc9s12dj256b in codewrrior(CodeWarrior CW12_V3. 1)
if you can please share your assembly code.i hope it may help my further programming

thanks
simi

----- Original Message -----
From: John Thompson
To: 6...@yahoogroups.com
Sent: Monday, April 28, 2008 6:28 PM
Subject: RE: [68HC12] eeprom
Hi,

In 'C' or assembler?

I have routines in assembler.

-----Original Message-----
From: 6...@yahoogroups.com [mailto:6...@yahoogroups.com]On Behalf Of Simi
Sent: 28 April 2008 11:59
To: 6...@yahoogroups.com
Subject: [68HC12] eeprom

Has anyone written a simple writeEEPROM routine for the HCS12
processors they would like to post.please send to me

thanks
simi

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Scanning of this message and addition of this footer is performed
by E-mail Content Filter Software at ADA in conjunction with McAfee
Virus detection software
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

[Non-text portions of this message have been removed]

Click here to report this email as spam.

[Non-text portions of this message have been removed]

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Scanning of this message and addition of this footer is performed
by E-mail Content Filter Software at ADA in conjunction with McAfee
Virus detection software
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Scanning of this message and addition of this footer is performed
by E-mail Content Filter Software at ADA in conjunction with McAfee
Virus detection software
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[Non-text portions of this message have been removed]
------------------------------------



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

Re: eeprom - =?ISO-8859-1?Q?Ruben_J=F6nsson?= - Apr 29 3:49:33 2008

You can use processor expert, which is an add on to codewarrior, to make stub
routines to handle eeprom writing.

/Ruben


>
> i am doing the program in c . i am using mc9s12dj256b in
> codewrrior(CodeWarrior CW12_V3. 1) if you can please share your assembly
> code.i hope it may help my further programming
>
> thanks
> simi
>
> ----- Original Message -----
> From: John Thompson
> To: 6...@yahoogroups.com
> Sent: Monday, April 28, 2008 6:28 PM
> Subject: RE: [68HC12] eeprom
> Hi,
>
> In 'C' or assembler?
>
> I have routines in assembler.
>
> -----Original Message-----
> From: 6...@yahoogroups.com [mailto:6...@yahoogroups.com]On Behalf Of Simi
> Sent: 28 April 2008 11:59 To: 6...@yahoogroups.com Subject: [68HC12] eeprom
>
> Has anyone written a simple writeEEPROM routine for the HCS12
> processors they would like to post.please send to me
>
> thanks
> simi
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Scanning of this message and addition of this footer is performed
> by E-mail Content Filter Software at ADA in conjunction with McAfee
> Virus detection software
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> [Non-text portions of this message have been removed]
>
> Click here
> > !Xg5FImXTeqLBPFLVKcOV9J2yOToe4ZxrCvQjwCagKIhBlXmJOAJQFh5q5CGZO49uOP2K0fmCz0gcV
> zk+gO1GrFJL3ldzs77lwf7+LXdIt9d29kxs+YbDDKwMCtZx2EqMDrerpaFfIQj7+Gvd5bct2HjIs!M
> hxrP5aq+5yVOJ4u9Ekoi!I> to report this email as spam.
>
> [Non-text portions of this message have been removed]
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _ _
>
> Scanning of this message and addition of this footer is performed
> by E-mail Content Filter Software at ADA in conjunction with McAfee
> Virus detection software - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - -
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Scanning of this message and addition of this footer is performed
> by E-mail Content Filter Software at ADA in conjunction with McAfee
> Virus detection software
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> [Non-text portions of this message have been removed]
> ------------------------------------



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

RE: eeprom - John Thompson - Apr 29 9:09:32 2008

Hi,

I can confirm the routine below works.

John

* Routine to Program EEPROM
* D contains new data word
* Y contains word aligned EEPROM address
PROG MOVB #$30,ESTAT ;Clear error flags in ESTAT
BRCLR ESTAT,$80,EEPWF ;Check command buffer is empty
STD 0,Y ;Write data in D to EEPROM aligned word address
MOVB #$20,ECMD ;Write program command
MOVB #$80,ESTAT ;Write 1 to CBEIF to launch command
BRSET ESTAT,$30,EEPWF ;Command failed if either error flag set
BRCLR ESTAT,$40,*+0 ;Wait for command to finish:CCIF bit to clear
CLRB ;Successful - return
BRA EEPGRTN
*
EEPWF LDAB #1 ;Fail - return
EEPGRTN RTS

-----Original Message-----
From: 6...@yahoogroups.com [mailto:6...@yahoogroups.com]On Behalf Of Simi
Sent: 29 April 2008 05:35
To: 6...@yahoogroups.com
Subject: Re: [68HC12] eeprom

i am doing the program in c . i am using mc9s12dj256b in codewrrior(CodeWarrior CW12_V3. 1)
if you can please share your assembly code.i hope it may help my further programming

thanks
simi

----- Original Message -----
From: John Thompson
To: 68HC12@yahoogroups. com
Sent: Monday, April 28, 2008 6:28 PM
Subject: RE: [68HC12] eeprom
Hi,

In 'C' or assembler?

I have routines in assembler.

-----Original Message-----
From: 68HC12@yahoogroups. com [mailto: 68HC12@yahoogroups. com]On Behalf Of Simi
Sent: 28 April 2008 11:59
To: 68HC12@yahoogroups. com
Subject: [68HC12] eeprom

Has anyone written a simple writeEEPROM routine for the HCS12
processors they would like to post.please send to me

thanks
simi

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Scanning of this message and addition of this footer is performed
by E-mail Content Filter Software at ADA in conjunction with McAfee
Virus detection software
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

[Non-text portions of this message have been removed]

Click here < https://www. mailcontrol.com/sr/oQfdi9RSFc2bAjKQNiwmCKhUOEoSG!KOs0tkVMfhtnMWj5!Xg5FImXTeqLBPFLVKcOV9J2yOToe4ZxrCvQjwCagKIhBlXmJOAJQFh5q5CGZO49uOP2K0fmCz0gcVzk+gO1GrFJL3ldzs77lwf7+LXdIt9d29kxs+YbDDKwMCtZx2EqMDrerpaFfIQj7+Gvd5bct2HjIs!MhxrP5aq+5yVOJ4u9Ekoi!I> to report this email as spam.

[Non-text portions of this message have been removed]

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Scanning of this message and addition of this footer is performed
by E-mail Content Filter Software at ADA in conjunction with McAfee
Virus detection software
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Scanning of this message and addition of this footer is performed
by E-mail Content Filter Software at ADA in conjunction with McAfee
Virus detection software
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]
------------------------------------



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