Posted: Thu Jun 09, 2016 11:48 am Post subject: Problem of Xmega with config lcd
Hi
I read all the post related to problems of Xmega and the help of bascom related to config osc and $crystall directive, but still i have problem with lcd.
as mentioned in help:
Quote:
The XMEGA has a built in internal oscillator that runs at a relative slow speed. If your code sets the speed to 32 MHz and you also include the $crystal=32000000 directive, you will notice a delay in the start of the code. This is caused by the fact that the delay routines are calculated with the 32 Mhz frequency, but the actual oscillator speed is 1 or 2 MHz.
There are 2 solutions possible.
- you can use $crystal=1000000 and then after you have set up the clock speed with CONFIG OSC, you can use another $CRYSTAL directive with the new speed.
- you use $INITMICRO and put the CONFIG OSC in the _INIT_MICRO code. This will ensure that the micro will run at the specified speed early as possible.
with 2x16 lcds the problem solved, but using nokia5110 lcd with Mr.Mirshv library and so on, when i use lcd statement, the micro some times start to work and some times not stat to work!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum