LCD of PBMCUSLK (project board 2)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LCD of PBMCUSLK (project board 2)

Jump to solution
2,798 Views
q8Nsde
Contributor I
 i have PB\MCUslk,
when i download my application on  MCU , the output must appear on the LCD , but it didnt
 
 
note:the LCD is on but there is no result appear on it
Labels (1)
Tags (1)
0 Kudos
1 Solution
545 Views
CrasyCat
Specialist III
Hello
 
CodeWarrior for HC08 V5.1 is configured to redirect stdout (printf) to a SCI.
If you want to see output of your printf on your LCD:
  - Start CodeWarrior
  - Open the file {Install}\lib\hc08c\src\termio.c
  - Select "File" -> "Save As"
  - Save the file in your project source directory and give is a meaningful name (for example
     term_LCD.c)
  - Add that file to your project
  - Modify the implementation of the functions TERMIO_Init and  TERMIO_PutChar to respectively
     initialize the LCD device and send a character there.
  - Define an empty TERMIO_GetChar as you will not be able to get input char from the LCD.
  - Build the application.
 
That should do it.
 
CrasyCat

View solution in original post

0 Kudos
4 Replies
545 Views
CrasyCat
Specialist III
Hello
 
According to Freescale web page, PBMCUSLK is available for different microcontrollers. So I need more information to answer your question.
 
- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
  To retrieve that info:
  - Start CodeWarrior
  - Select Help -> About Freescale CodeWarrior
  - Click on "Install Products"
  - CodeWarrior version used is displayed on top in the Installed Products dialog.
 
Finally how are you trying to print something to the LCD? Are you expecting stdout (printf) to be redirected there?
 
CrasyCat
0 Kudos
545 Views
q8Nsde
Contributor I
hello CrasyCat,
as answetrof your questions:
 
 CPU im targeting  is HC08
version of CodeWarrior is 5.1
if u need any more information ask it
 

 
 
0 Kudos
545 Views
q8Nsde
Contributor I
and,
yes i expect output on LCD , as my application software that i loaded in  the cpu programmed
0 Kudos
546 Views
CrasyCat
Specialist III
Hello
 
CodeWarrior for HC08 V5.1 is configured to redirect stdout (printf) to a SCI.
If you want to see output of your printf on your LCD:
  - Start CodeWarrior
  - Open the file {Install}\lib\hc08c\src\termio.c
  - Select "File" -> "Save As"
  - Save the file in your project source directory and give is a meaningful name (for example
     term_LCD.c)
  - Add that file to your project
  - Modify the implementation of the functions TERMIO_Init and  TERMIO_PutChar to respectively
     initialize the LCD device and send a character there.
  - Define an empty TERMIO_GetChar as you will not be able to get input char from the LCD.
  - Build the application.
 
That should do it.
 
CrasyCat
0 Kudos