Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

8051 Timer and UART flags

2 posters

Go down  Message [Page 1 of 1]

18051 Timer and UART flags Empty 8051 Timer and UART flags Tue Oct 03, 2023 11:17 am

royqh1979



8051 use TFx as the flag of timer overflow, and RI/TI as the flag of UART send/received.

But I can't find the code that set these flags. Are they implemented?

28051 Timer and UART flags Empty Re: 8051 Timer and UART flags Tue Oct 03, 2023 12:19 pm

arcachofo

arcachofo

Flags are set in src/microsim/mcuinterrupts.cpp Interrupt::raise().

Most functionality for interrupts is implemented there, but there are some specific cases implemented in i51interrupt, avrinterrupt, etc.

38051 Timer and UART flags Empty Re: 8051 Timer and UART flags Tue Oct 03, 2023 2:06 pm

royqh1979



en...I can't get 8051's uart work.
Not sure where's the problem. I just started to learn digital circuit and 8051 mcu since last month...

But debug do make me understand a lot about 8051...

48051 Timer and UART flags Empty Re: 8051 Timer and UART flags Tue Oct 03, 2023 2:22 pm

arcachofo

arcachofo

I can't get 8051's uart work.
You are right, my test also fails.
I will have a look.

58051 Timer and UART flags Empty Re: 8051 Timer and UART flags Tue Oct 03, 2023 8:51 pm

arcachofo

arcachofo

Solved some issues when USART is driven by Timer at Rev 1961.

Not sure but this could break something else, still needs some testing with other MCUs.

68051 Timer and UART flags Empty Re: 8051 Timer and UART flags Wed Oct 04, 2023 2:08 am

royqh1979



arcachofo wrote:Solved some issues when USART is driven by Timer at Rev 1961.

Not sure but this could break something else, still needs some testing with other MCUs.

Great!

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum