5027 views|7 replies

7

Posts

0

Resources
The OP
 

How does the Zigbee protocol stack read data sent from the serial port? [Copy link]

I currently want to use cc2530 to receive data from the serial port, and then send it out via broadcast. How should I do it specifically? My idea 1:
  1. #pragma vector = URX0_VECTOR __interrupt void UART0_ISR(void) { URX0IF = 0; // Clear interrupt flag temp = U0DBUF; }
复制代码
Receive bytes one by one through the receive interrupt, but I find that no matter how I send data to cc2530, the receive interrupt function cannot be triggered. Why is this? ? When I initialized the serial port, I have already turned on the general interrupt and the receive interrupt IEN0 |= 0x84; In addition, how do I use the HalUARTRead function? It requires the parameter buf, but I don’t know how to get a buf.
This post is from RF/Wirelessly

Latest reply

It seems to be pediatric  Details Published on 2018-10-22 22:42
 

7

Posts

0

Resources
2
 
From the top
This post is from RF/Wirelessly
 
 

7

Posts

0

Resources
3
 
No one is coming, I'm lying
This post is from RF/Wirelessly
 
 
 

108

Posts

5

Resources
4
 
This post is from RF/Wirelessly
Personal signature433m/2.4g无线模块www.silicontra.com
Q2190957825/13570852936
 
 
 

17

Posts

0

Resources
5
 
The interrupt is not configured. Is it in the bare metal program or in the protocol stack? For technical exchanges on ZigBee and other wireless communications, you can join the QQ group: 575036716
This post is from RF/Wirelessly
 
 
 

86

Posts

1

Resources
6
 
You can directly use Ti's protocol stack, which contains serial port functions.
This post is from RF/Wirelessly
 
 
 

2

Posts

0

Resources
7
 
Serial port settings U0CSR |= 0x80; Serial port settings to UART mode U0GCR |= 9; U0BAUD |= 59; UTX0IF |= 1; U0CSR |= 0x40; Allow receiving IEN0 |= 0x84;
This post is from RF/Wirelessly
 
 
 

1903

Posts

0

Resources
8
 
It seems to be pediatric
This post is from RF/Wirelessly
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

快速回复 返回顶部 Return list