Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 5, 3 & 1 Forum Discussions

RaPe_567536
Level 1
Level 1

I am writing directly in assembler to get speed. Using MOVC A,@A+DPTR produces opcode 93 but the prior A  value (required for the offset) appears in the accumulator afterwards rather than the contents of the eeprom addressed by the DPTR at #8000H. Normal MOVX @DPTR,A works and using INC DPTR works too. Any ideas??

0 Likes
1 Reply
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi,

Sorry I am not able to understand the query completely. As per my understanding, the instruction MOVC A,@A+DPTR copies the contents present in the address (A+DPTR) to A.

Can you please check what is the value of A, DPTR and what is the value in the location A+DPTR, call the MOVC A,@A+DPTR instruction and see what value does A have after execution.

Thanks

Ganesh

0 Likes