Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/25/02 09:47
Read: times


 
#19095 - RE: port 0 and external memory use
Hi,

Oh dear after a night away I think I've
figured out a problem with what I wrote yesterday...

> Then any external write to memory will
> apply the required _data_ to the latch of
> the DAC.
I take it the _data_ won't be latched - it will be the _address_... %-)

So in order to write data into the DAC I
have to use the data as an address access??

So something of the order:

WORD16 dac_var_12bit;
.
.
P1 &= 0xf1; // clear P1.1, P1.2, P1.3
P1 |= 0x06; // set P1.1, P1.2

*(WRITE_LOW_NIBBLE | (dac_var_12bit&0x000f)) = 0; // use data as an address on DAC latch

etc???

P1 &= 0xf1; // reset P1.1, P1.2, P1.3
.


Help anyone??? Does this sound more like it?

Kev



List of 13 messages in thread
TopicAuthorDate
port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      
RE: port 0 and external memory use            01/01/70 00:00      

Back to Subject List