CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

WS0100 -TX (CPC WEG010016ELPP5N00100) Auto Reset

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
mayur.k.vadukul



Joined: 07 Jul 2022
Posts: 40

View user's profile Send private message

WS0100 -TX (CPC WEG010016ELPP5N00100) Auto Reset
PostPosted: Fri Aug 18, 2023 4:14 am     Reply with quote

I am using WEG010016ELPP5N00100 (WS0100 Controller IC) and graphic mode. The display is working correctly, however on odd occasion the display appears to get reset (Auto Reset assuming).

The display is defined as Two Line Display and the UART is enabled. It does get UART data whilst the system is working so the interrupt could occur whilst the data is being sent to the display. But I am processing the interrupt very quickly and it should not be Auto-Reset as after Auto Reset the display initializes with single line.

After completion of every message, I am re-initializing the display by hardware reset as I have ability on my hardware to perform Hard reset.

However, any ideas would be welcome.
_________________
MVadukul
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Fri Aug 18, 2023 4:42 am     Reply with quote

You need to tell us a lot more about the PIC and the code you are using
to drive this.
Obvious things are that this is power related. Do you have the 0.1uF
capacitor immediately adjacent to the display that is recommended?.
Are you driving this in 4bit or 8bit mode?. If you are using 4bit mode, have
you looked at the recovery when there 'noise transfer mismatch' in the
data?. This is recommended at the head of each transfer proceedure to
ensure synchronisation.
mayur.k.vadukul



Joined: 07 Jul 2022
Posts: 40

View user's profile Send private message

PostPosted: Fri Aug 18, 2023 4:46 am     Reply with quote

I am using 4 Bit interface and the PIC is PIC18F25K22.

The display is working absolutely fine but whilst the display is running, suddenly the display appears to be AutoReset. This gets corrected when in my code it is reinitializes. I have video of the display but not sure how can I post here.
_________________
MVadukul
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Aug 18, 2023 5:37 am     Reply with quote

Curious, I downloaded the LCD datasheet.
Interesting about the 'noise recovery' procedure. Never seen that before.
I'm wondering if the lower 4 bits could be tied to ground or VDD to prevent 'noise' ? Pretty sure I've seen this on other modules
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Fri Aug 18, 2023 6:33 am     Reply with quote

The reset is the difference between this display and the Hitachi compatible
devices. It is prone to hiccups sometimes when using the 4bit interface.
If you look at the Arduino and BBC drivers for these, the better ones
add sending the 5 nulls, and the notes say that this doesn't matter when
talking to the Hitachi compatible displays, but it is needed with these units.
There is no explanation anywhere of what causes this. I suspect it is
an internal lockup in the state machine inside the controller, however adding
this reset appears to be needed for these displays. If for example you are
using the flex_lcd driver, then at the start of each new screen just call
lcd_send_nibble(0); five times.
The fact that the manufacturer refers to noise when talking about this
is why I asked about whether the extra capacitor is present (unanswered).
They recommend like with the PIC itself that there is a 0.1uF ceramic
capacitor immediately adjacent to the supply connections.
mayur.k.vadukul



Joined: 07 Jul 2022
Posts: 40

View user's profile Send private message

PostPosted: Fri Aug 18, 2023 7:35 am     Reply with quote

I am adding 5 times null on powering up the display but not every time. I was aware of capacitor 5 null commands but did not think it is required every time. I will try this and let you know.
_________________
MVadukul
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group