2019-12-03 05:46 AM
In STVD (ver.4.3.12 MCU: STM8L052C6)
I wrote:
LD A,#$68
LD $5232,A ;(USART bade rate register)
but memory ($5232) is $00
when I wrote:
LD $5000,A ;Port A data reg.
memory ($5000) is $68, it work well
whai is the different?
Could anybody help me? THX. Sandor
2019-12-03 05:48 AM
Peripheral clock enabled?
2019-12-03 11:58 AM
Many thanks!!!
Oh, works!!! This is my first program.
Registers ok, but data on TX pin doesn't present yet. I work on it.
Are you perfect in assembler?