please dont rip this site

PICList Project

LCD based PIC Register Monitor

Jinx says:

I needed a way to look inside an F88 while it was running, so as to check what was happening to certain RAM registers. So I knocked up this RAM sniffer

On a regular basis (every 2 seconds, as determined by a system tick) the F88 bitbangs its RAM contents out. The 2520 picks this data up, if set to, and shows it as 2 lines of 4 bytes, each line starting with the address. Two buttons allow you to move up and down

Could be made into something flashy, but for now it does all I need it to. Maybe someone else can use it, I found it tremendously helpful

Connections to the circuit are 4 clipped leads - 0V, 5V, clock, data.

Some 2520 routines are there for another day and aren't used here

ram_show.asm

ram_show_source.asm

Also:

A timing oversight - I found that a 48MHz USB PIC needs a few NOPs in the transmit routine (as offered above) to give the 2520 a chance to store incoming and get back to data pick-up  

The transmit routine could also of course include FSRs and program/EEPROM locations

Generally now I have a pushbutton in the main loop or other convenient wait place to send data on demand, using the bbdata line as both button press detect and data transmit

Or the routine p2p is called to skip the button press and delay

(this example for an 8MHz 18F1320)

pic2pic  btfss   showram      ;wait for button release
         bra     $-2
         call    ms50         ;short debounce delay
         movlw   b'00101000'  ;i/p off, bbdata o/p on
         movwf   trisa

p2p      movlw   b'00101000'  ;i/p off, bbdata o/p on
         movwf   trisa

         lfsr    fsr0,0x0000

d_loop   movlw   0x08
         movwf   temp4
         movf    indf0,w
         movwf   temp1
         call    send_d
         incfsz  fsr0l
         bra     d_loop
         movlw   b'10101000'  ;i/p on, bbdata o/p off
         movwf   trisa
         return

See also:


file: /Techref/piclist/jinxlcdregmon.htm, 2KB, , updated: 2008/4/8 13:05, local time: 2017/10/17 05:10,
TOP NEW HELP FIND: 
54.224.13.210:LOG IN

 ©2017 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/jinxlcdregmon.htm"> LCD based PIC Register Monitor by Jinx</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?

  LCD Front Panel Set: $8.99!
- 2x16 LCD HD44780 controller
- 4 push buttons - 3 LEDs - 2x12 header
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .