avr单片机 串口UART不够用,请问怎么扩充?
需要2~3个UART,现在的altmel644p,只有一个谢谢 换片子 MRGA640 有4个。。
MEGA64 有2个,可以用软件方式实现一个,就可以有3个了。 atmega64,128都是2个,
不行用AVR系列的,用STM32系列的可以达到3-5个 换芯片呗,有的型号是多串口的,或者就用其他端口软件模拟串口 ATXMEGA32a4
• Peripheral Features
– Four-channel DMA Controller with support for external requests
– Eight-channel Event System
– Five 16-bit Timer/Counters
Three Timer/Counters with 4 Output Compare or Input Capture channels
Two Timer/Counters with 2 Output Compare or Input Capture channels
High-Resolution Extensions on all Timer/Counters
Advanced Waveform Extension on one Timer/Counter
– Five USARTs
IrDA Extension on one USART
– Two Two-Wire Interfaces with dual address match (I
2
C and SMBus compatible)
– Two SPIs (Serial Peripheral Interfaces) peripherals
– AES and DES Crypto Engine
– 16-bit Real Time Counter with Separate Oscillator
– One Twelve-channel, 12-bit, 2 Msps Analog to Digital Converter
– One Two-channel, 12-bit, 1 Msps Digital to Analog Converter
– Two Analog Comparators with Window compare function
– External Interrupts on all General Purpose I/O pins
– Programmable Watchdog Timer with Separate On-chip Ultra Low Power Oscillator 用模拟量开关芯片切换,比如HC4053。
不过这种方法需要自己做切换,不适合连续输入不能丢数据的场合! 扩几个嘛,CH432T,两个的,SPI 用广播的方式按照一定规律发送数据(加数据开始字符),然后接收方检测,分辨 atmegax64 为什么要那么多个UART,能不能当成uart总线,都挂在上面呢 mark
页:
[1]