cancel
Showing results for 
Search instead for 
Did you mean: 

STVD LD mem,A problem

SBodo.1931
Associate

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

This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2

Peripheral clock enabled?​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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?