??? 05/01/07 21:22 Read: times |
#138416 - what datasheet do you have? Responding to: ???'s previous message |
Erik Malund said:
The crummy Winbond datasheet does not give any details, just a crummy example and do not even bother explaining the CHPENR SFR. I am NOT a Windbond specialist, just curious. I just threw into google "CHPENR winbond" and the first link was to a datasheet, with detailed description of CHPCON register, and the following (in bold): datasheet on page 14 said:
The CHPCON is read-only by default, software must write two specific values 87H, then 59H sequentially to the CHPENR register to enable the CHPCON write attribute. Writing CHPENR register with the values except 87H and 59H will close CHPCON register write attribute. I'd say, the example how is it used in the program, should work just fine, provided there is no gotcha in it (e.g. interrupt using CHPCON, kicking while in middle of the sequence). I didn't understand what was wrong, though. JW PS. You surely meant to write "movx @r0,a"? |
Topic | Author | Date |
calling Winbond specialists | 01/01/70 00:00 | |
what datasheet do you have? | 01/01/70 00:00 | |
detailled? | 01/01/70 00:00 | |
? | 01/01/70 00:00 | |
WOM | 01/01/70 00:00 | |
Hoorah for Winbonds | 01/01/70 00:00 | |
a timing error that | 01/01/70 00:00 | |
CHPCON writes | 01/01/70 00:00 | |
other use of CHPCON | 01/01/70 00:00 | |
where is the happy-end? | 01/01/70 00:00 | |
the happy end | 01/01/70 00:00 | |
oh... | 01/01/70 00:00 | |
there was no problem | 01/01/70 00:00 | |
ah, but then... | 01/01/70 00:00 | |
an obnoxious interference | 01/01/70 00:00 | |
the goo' ol' EMI... | 01/01/70 00:00 | |
NOT EMI | 01/01/70 00:00 | |
Ah... | 01/01/70 00:00 | |
correction | 01/01/70 00:00 | |
if the customer complains...![]() | 01/01/70 00:00 |