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

Logic contention(s) detected in Flex 20x4 driver

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
*estudiante



Joined: 10 Aug 2015
Posts: 3

View user's profile Send private message

Logic contention(s) detected in Flex 20x4 driver
PostPosted: Sun Sep 20, 2015 6:02 pm     Reply with quote

good everyone, I'm looking at the code example and the library
http://www.ccsinfo.com/forum/viewtopic.php?t=28268
than PCM but when I simulate in Proteus gives me error.

these are the errors

Logic contention(s) detected on net #00003.
Logic contention(s) detected on net #00001.
Logic contention(s) detected on net #00002.
Logic contention(s) detected on net #00004.

I connect the pins as it says in the library but it gives me error
Code:

#define LCD_DB4   PIN_D4
#define LCD_DB5   PIN_D5
#define LCD_DB6   PIN_D6
#define LCD_DB7   PIN_D7

#define LCD_RS    PIN_E0
#define LCD_RW    PIN_E1
#define LCD_E     PIN_E2

I hope you can help me, thanks
Ttelmah



Joined: 11 Mar 2010
Posts: 19535

View user's profile Send private message

PostPosted: Mon Sep 21, 2015 12:23 am     Reply with quote

Simple answer - get rid of Proteus.....

Proteus cannot simulate the PIC at all well (a search here will find lots of posts about this).

Problem here is that the PIC pins are used by the driver as if they are tri-state. The driver reprograms the I/O direction, when the R/W line is used, so that the same pin used as an input can also be used as an output. Proteus cannot understand this, so complains.....
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