So, do you think that using an 7805 is an option? So even if you have a 100Volt/100 Amp Power supply, your PIC circuit will be a bit safer.
Ioannis
So, do you think that using an 7805 is an option? So even if you have a 100Volt/100 Amp Power supply, your PIC circuit will be a bit safer.
Ioannis
with the help from forum members and a lot of reading i managed to get the lcd working, again my stupidity came into play ,i defined the 16f628a to use the internal osc but it would not work ,so put an external xtal in the circuit and it worked. so thanks again
a new question i want to use a 1 wire temp sensor as per the example code, now i know i can define the lcd to port b, but the bit i cant seem to get my head around is how to move the lcd pins db7 this shows as porta.3 in the sample code so i assume it will want portb.3 if i move the lcd to portb, also the e line shows as portb.3 in the sample code, so am i right in thinking i can move the e line by using the following and specifing an unused pin say portb.5 i.e
Define LCD_EREG PORTb
Define LCD_EBIT 5
another thing i cant get to grips with is displaying 2 seperate pieces of info one a line ,
say
fan1 on fan2 off
i plan on using 4 different gosubs with an lcdout to show the 4 states of the fan,
is there any way to make the on and off words appear as say
fan1 (a) fan2 (b)
where (a) and (b) say off or on by using only 1 lcdout command
can i use something like
lcdout $fe, 1
pause 500
lcdout fan1 (a) fan2 (b)
if temperature =21 then let (a)=on and (b)=off
if temperature =23 then let (a)=off and (b)= on
lastly how can i display a custom character more than once on a line ie if i make a smiley and want to use it 6 times (its say written to the lcd in the first memory slot)
LCDOUT $fe,$c0,0,0,0,0,0 'write smiley six times
when i tried it it just wrote it the once
i hope this makes sence to someone
many thanks in advance
What does "smeghead" mean?Code:LCDOUT $fe,$c0,0 LCDOUT $fe,$c1,0 LCDOUT $fe,$c2,0 LCDOUT $fe,$c3,0 LCDOUT $fe,$c4,0 LCDOUT $fe,$c5,0 LCDOUT $fe,$c6,0
Dave
Always wear safety glasses while programming.
The four data lines (4 bit mode) have to be on the same port going from 0-3 or 4-7.
The othe two lines can be anywhere.
Example:
This is all standard.Code:DEFINE LCD_DREG PORTC DEFINE LCD_DBIT 0 DEFINE LCD_RSREG PORTD DEFINE LCD_RSBIT 1 DEFINE LCD_EREG PORTD DEFINE LCD_EBIT 0 DEFINE LCD_BITS 4 DEFINE LCD_LINES 2 DEFINE LCD_COMMANDUS 2000 DEFINE LCD_DATAUS 50
Darrel has a trick called LCD AnyPin that does as the name implies. Non standard
Try something likecan i use something like
lcdout $fe, 1
pause 500
lcdout fan1 (a) fan2 (b)
if temperature =21 then let (a)=on and (b)=off
if temperature =23 then let (a)=off and (b)= on
If temperature is whatever gotsub a subroutine.
Dave
Always wear safety glasses while programming.
cheers again have already wrote 4 subroutines for the various temperature fan states . just wondered if i could do it the other way will have a search for darrels ant pin routine
Bookmarks