Hi
we were trying to interface tinyLCD to tm4c123GXl EVM , when we run in debug mode display works fine but out of debug display does not run only , i have attached the code for your reference please help me to resolve this issue.
Regards
Nandish
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
we were trying to interface tinyLCD to tm4c123GXl EVM , when we run in debug mode display works fine but out of debug display does not run only , i have attached the code for your reference please help me to resolve this issue.
Regards
Nandish
Hi,
You have mixed Tiva code with 8051 code written by someone else. This will not work. Keep in mind that copy-paste is only an illusory method of solving problems, only sometimes you may fall on a ready-made solution.
The best method to approach this is to first read and understand the user manual of your micro, the peripheral driver library and search the forum for other's experience.
If you like to use code from other micros, well, this can be done with a lot of work - e.g P0^2 in 8051 means pin 2 of port P0, so to set a GPIO pin in Tiva replace that expression with GPIOPinWrite(port, pin, value) - read the code for this function, is available. (expressing this in other way: each micro controller brand has its own assembler/compiler notation - to use some code you must known also that micro....)
Petrei
Nandish H S said:...when we run in debug mode display works fine but out of debug display does not run!
While Petrei's points are valid - the fact that you report, (w/out any detail) "Display works!" suggests you've a timing issue - which is (corrected or simply masked) by the slowed operation while debugging.
I'm in the Lcd biz - have only slightest awareness of, "tinyLCD" - it's unrealistic for posters to "expect" that helpers here will search for their unique part specs...
Beyond earlier suggestions - review of HD44780 timing specs - especially "E" pulse set-up, width, hold - usually solves such issues...