MC9RS08KA2 A/D conversion

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9RS08KA2 A/D conversion

978 Views
jackabo
Contributor I
I had a message posted before about using the AN3266 document to do A/D conversion for my MC9RS08KA2 and I have almost debugged all of the code. However, there is one section of the code where the Page Selection Register is initialized with the code of "mov #HREG, PAGESEL" However, there is no variable called HREG in the document. Does anyone know if this vaule is just $00 or is there some other value that is used to set the PAGESEL to an initial value? If anyone has any ideas please let me know. Thank you.
 
Jackabo
Labels (1)
0 Kudos
Reply
1 Reply

329 Views
bigmac
Specialist III
Hello Jackabo,
 
I would guess that HREG is the value that should be in PAGESEL, so that the high page registers ($0200-$023F) are visible in the paging window.  If my reckoning is correct, the following definition would apply -
 
HREG  EQU  8
 
Regards,
Mac
 
0 Kudos
Reply