please dont rip this site

WEEDER FREQUENCY COUNTER

Fix for 2 line (8x2) displays that were sold as 16x1 displays
Chris [cklymko at hotmail.com]

;*********************************************************************
;* WEEDER FREQUENCY COUNTER
;* Fix for 2 line (8x2) displays that were sold as 16x1 displays
;*
;* Because most of these displays lack a controller chip
:* it is required that the code manually sets the address for the 
:* 9th char. That is what this code does.
;*
;* Questions?
;* Drop me an e-mail cklymko@hotmail.com
;* 
;* Scroll through your code and locate "Shift".
;* Paste the following code starting with "Shift" and ending
;* just before the first "sub" command.
;*
;*********************************************************************
shift	btfsc	addcnt,6	;added for 8x2 displays
	goto	shift2		;
;	btfsc	addcnt,3	;
;	goto	line2		;end the 8x2 code
	btfss	addcnt,0	;shift to opposite side of display?
	retlw	0x00
	btfss	addcnt,1
	retlw	0x00
	btfss	addcnt,2
	retlw	0x00
	goto	line2
;	btfss	addcnt,3
	retlw	0x00
	
line2	movlw	0xB8 		;Force the second line.
	addwf	addcnt,f
	bsf	addcnt,7
	movf	addcnt,w
	goto	inst
;*********************************************************************
; added to move back to home position.
;*********************************************************************

shift2	btfsc	addcnt,3	;
	goto	line1	
	btfss	addcnt,0	;shift to opposite side of display?
	retlw	0x00
	btfss	addcnt,1
	retlw	0x00
	btfss	addcnt,2
	retlw	0x00
;	btfss	addcnt,3
	retlw	0x00
line1	movlw	0x39		
	addwf	addcnt,f
	bsf	addcnt,7
	movf	addcnt,w
	goto	inst

+

Comments:

See also:


file: /Techref/piclist/weedfreq8x2LCD.htm, 2KB, , updated: 2014/4/10 15:57, local time: 2018/11/18 01:06, owner: JMN-EFP-786,
TOP NEW HELP FIND: 
54.144.100.123:LOG IN

 ©2018 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/piclist/weedfreq8x2LCD.htm"> WEEDER FREQUENCY COUNTER</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2018 contributors:
o List host: MIT, Site host massmind.org, Top posters @20181118 RussellMc, Van Horn, David, Sean Breheny, David C Brown, Isaac M. Bavaresco, Bob Blick, Neil, John Gardner, Manu Abraham, AB Pearce - UKRI STFC,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .