Other HI-TECH Compilers & Products >> 8051 Legacy Compiler

Pages: 1 | 2 | 3 | (show all)
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3387
Loc: Boulder, Colorado U.S.A.
Re: Assign pointer address for flash [Re: InstantKarma]
      #27186 - Mon Apr 16 2007 07:33 PM

Code:
  24                            ;flash.c: 12: TA = 0xAA;
25 line 12
26 0008' 75 C6 AA mov 198,#170
27 ;flash.c: 13: TA = 0x55;
28 line 13
29 000B' 75 C6 55 mov 198,#85
30 ;flash.c: 14: FCNTL = 0x0B;
31 line 14
32 000E' 75 D5 0B mov 213,#11


The code generation can't be improved upon and supports the timing requirements. However the TA's SFR address shown above as C6 is wrong. It should be C7. I suggest you correct whatever header file that is contained in and if it's a HI-TECH header file, e-mail support to inform them of the error.


Post Extras: Print Post   Remind Me!   Notify Moderator  
InstantKarma



Reged: Oct 17 2005
Posts: 29
Loc: Brisbane, Australia
Re: Assign pointer address for flash [Re: Dan Henry]
      #27191 - Mon Apr 16 2007 08:55 PM

Thanks Dan. I'll email them directly and make some changes to the header file and see what happens.

Regards,
Lee.


Post Extras: Print Post   Remind Me!   Notify Moderator  
InstantKarma



Reged: Oct 17 2005
Posts: 29
Loc: Brisbane, Australia
Re: Assign pointer address for flash [Re: InstantKarma]
      #27195 - Mon Apr 16 2007 09:20 PM

Hi Dan, Works fine now. Once again I am indebted to you and it is all good experience for me.

Thanks again,
Lee.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3387
Loc: Boulder, Colorado U.S.A.
Re: Assign pointer address for flash [Re: InstantKarma]
      #27198 - Mon Apr 16 2007 09:56 PM

You're welcome! Thank you for closing the loop.

Despite me working blind toolchain-wise, I am tenacious, so if you can endure the protracted dialog while I try to get to a problem's root cause, there is some chance of getting there eventually.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1 | 2 | 3 | (show all)



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:  ndouglas, jtemples, Dan Henry, Andrew L, mikerj, dave g, meisty, josh stevo 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 11247

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5