brother means
if Pin1 is high, output ABC123
if Pin2 is high, output XYZ456 ?


of course it can, u just need to write a program to do that

if yes, any MCU tha ...
winglim7 發表於 2014-11-2 18:10


I am not familiar with 8051 (I am PIC fans) but there should be lots of them with build-in hardware UART. also there should be lots of software routine that it just take 1 or 2 pin to output RS232 signal by software if there is no hardware UART.

TOP

of course it can, u just need to write a program to do that



I am not familiar with 8051 (I am P ...
亞基拉 發表於 2014-11-2 18:50


haha...
actually i am making some direction to魚蛋Strike 's question.

this is not hard for both 8051/PIC / AVR.
the issue is how u design the product

e.g. hw to trigger the high signal (by remote / wifi ...)
this is much more important that the 232

TOP

其實想按個制( short cct 個input咁),
就出rs232 code, 去開電視呀轉定個台呀咁..或其它device 食rs232 command
D蠢蠢所為智能家居
可能4,5個input,
如果chip得1,2個input 或要 10010 之類為input signal, 咁又要諗由按制加轉  bin code 野

TOP

我諗樓主係想,唔知邊度黎嘅 hex 入去mcu,  轉成uart 出,mcu只係做converter
lunandii 發表於 2014-11-1 18:37



    都係, 如果直 short cct or logic high 就出 hex/dec code 都好

TOP

回覆 13# 魚蛋Strike

通常有UART既MCU都會有8個或以上input, 我最近用嗰粒有60幾個input, 2個UART

TOP

回覆 15# 亞基拉


    咩名堂, C兄分享下, input 食咩?
齋U 定連板玩?

TOP

回覆 16# 魚蛋Strike

我買/攞sample淨U自己做pcb, 你吾熟最好用arduino

TOP

回覆 17# 亞基拉


    arduino 都出到 asci command code?
找唔到相關料... 成日D sample 都係voltage 著LED

TOP

TOP

回覆 19# 亞基拉


   唔該C兄, mega 同due多3個serial添
但出事... 佢個ascii table由33開始...不是由0.....

TOP