Skip to main content
SBodo.1931
Associate
December 3, 2019
Question

STVD LD mem,A problem

  • December 3, 2019
  • 2 replies
  • 1043 views

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 topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    December 3, 2019

    Peripheral clock enabled?​

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    SBodo.1931
    Associate
    December 3, 2019

    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?