This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is it possible to view 16x2 LCD register values as a peripheral in debug mode?

I've connected a 16X2 LCD to STM32F401 board and successfully printed characters on the display. However, is it possible to view the contents of the LCD registers (data and command registers) while in debug window? We can view all register contents of the inbuilt peripherals in the STM32F401 board, but does that feature work for external devices like LCD also?

Parents
  • Best thing to do is probably make shadow copies for yourself. There are lots of LCD emulators/simulators out there so there aren't really any unknowns about what is expected (for instance sending data to the DR versus cursor position read back).  Probably the Busy Flag is the only thing that's actually unknown and even that has predictable timing.

    Of course it's worth mentioning that you can read the LCD data back out of the actual hardware, but this will affect the cursor position.

Reply
  • Best thing to do is probably make shadow copies for yourself. There are lots of LCD emulators/simulators out there so there aren't really any unknowns about what is expected (for instance sending data to the DR versus cursor position read back).  Probably the Busy Flag is the only thing that's actually unknown and even that has predictable timing.

    Of course it's worth mentioning that you can read the LCD data back out of the actual hardware, but this will affect the cursor position.

Children