- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, guys
I added a multiplexer with 2 clocks at clock in of UART module
The question is , how can I control the multiplexer select pin?
The logic "high" seems can't be change by program
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Although I have not been able to fully test the program,
probably adding a control register and control it from you program
will do what you want.
uint8_t value ;
value = Control_Reg_Read() ;
value = (value + 1) % 2 ;
Control_Reg_Write(value) ;
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use a one bit wide status register to provide a select signal.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Bob
Thanks you reply so soon
But I cant understand how status register works and fit to what I need
Anywhere, thank you very much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Obviusly not my day... I meant to use a control register, not status.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Although I have not been able to fully test the program,
probably adding a control register and control it from you program
will do what you want.
uint8_t value ;
value = Control_Reg_Read() ;
value = (value + 1) % 2 ;
Control_Reg_Write(value) ;
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Motoo
Thanks your reply
It looks like what I need
Thanks