3031 views|1 replies

40

Posts

0

Resources
The OP

Please help me with a simple program about CC2530 [Copy link]

#include
#define uint unsigned int #define uchar unsigned char void Init_T1() { PERCFG=0x00; //Timer 1 spare position 1 P0SEL=0xFF; T1CTL|=0X0E; //Mode: modulo; 128 division T1CC0H=0X04; T1CC0L=0X11; //Frequency: 120HZ T1CC1H=0X00; T1CC1L=0XFF; //Duty cycle adjustable T1CCTL1=0X2C; //Select timer 1 channel 1 as comparison mode //Channel 1 comparison mode: 5(101): clear when equal to T1CC0, set when equal to T1CC1} void main() { Init_T1(); while(1); }
This post is from RF/Wirelessly

Latest reply

Isn't this program already commented? What else do I need to read?  Details Published on 2013-3-10 00:34

32

Posts

0

Resources
2
Isn't this program already commented? What else do I need to read?
This post is from RF/Wirelessly

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>
    快速回复 返回顶部 Return list