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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/21/07 00:52
Read: times


 
#148566 - The manual says..
Responding to: ???'s previous message

Since the header file declares ADCCON1 as being a SFR at address 0xb4, you can access ADCCON1 by name and just assign a value to it.

#include <CC2430io.h> //or whatever the actual name is!

ADCCON1 = 0x73;

You really need to read the IAR manual to understand the embedded side of things. The SFRs are described on page 162 of the c/c++ compiler reference guide. I would also suggest you read the chapters on efficient programming of embedded systems also.


List of 4 messages in thread
TopicAuthorDate
Programming CC2430 (8051 CPU)            01/01/70 00:00      
   The manual says..            01/01/70 00:00      
      Interrupts problems            01/01/70 00:00      
         The code, please.            01/01/70 00:00      

Back to Subject List