Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - markbng

#1
LPC9xx/LPC9xxx / Re: IAP and P89LPC9221
February 28, 2006, 06:11:14 AM
Hello,

The IAP code from this site works for the P89LPC9221 with a few modifications. PGM_MTP has to be FF03h instead of FF00h. I discovered that the code from the code memory was read out the right way when I changed PGM_MTP. I was still not able to write to the memory after I modified PGM_MTP. In the user manual there is a note about an authorization key. You must set the authorization key before you process any write/erase procedures. I added these 2 commands at every write/erase procedure (before the write/erase lcall instruction):
   MOV R0,#0FFH   ; IAP authorization key.
   MOV @R0,#96H

Everything works after these modifications. I hope this will help somebody else.

Kind regards,
Mark



Post Edited (02-28-06 07:14)
#2
LPC9xx/LPC9xxx / Re: How to configure timers in P89LPC932
February 24, 2006, 06:54:13 AM
You can set a shorter time out for a timer in mode2 and count the time-outs/overflows. You can poll the TF0/TF1 bit. Clear the bit and increase the time-out counter. Break the loop if 1sec delay is reached (Time-out time * CounterValue = 1 sec.). See data-sheet for more information about the timers.

Regards,
Mark



Post Edited (02-24-06 07:56)
#3
LPC9xx/LPC9xxx / IAP and P89LPC9221
February 24, 2006, 05:16:35 AM
Hello,

At the moment I am working on a project with a P89LPC9221 device. I want to use the IAP routines to update the processor. I wrote some IAP-lite routines and these routines work fine. The IAP routines from this site don