Quote Originally Posted by rmteo View Post
Here is a low cost simulator (available for PIC16 and PIC18) that is fun to use:
http://www.oshonsoft.com/pic.html

It has a decent range of hardware peripherals, is low cost and the BASIC compiler is very similar to PBP. You can try it for free (with no limitations) for 30 days.
Downloaded that and have been trying out seems pretty complete. I have run a couple of their examples just to watch the ports and registers in action. It has helped get my head around the chips.


Thanks Copy'nPatse
So far I have been able to run most ME stuff on the EP5, that is until I tried the first LCD example. SO far I have not been able to get either board to display a thing.

Code:
'****************************************************************
'*  Name    : Hello.BAS                                      *
'*  Author  : Ted Crafton                                       *
'*  Notice  : Copyright (c) 2008 PROGRAM SPECS                  *
'*          : All Rights Reserved                               *
'*  Date    : 6/10/2008                                         *
'*  Version : 1.0                                               *
'*  Notes   :                                                   *
'*          :                                                   *
'****************************************************************
CLEAR
DEFINE      LCD_DREG    PORTD
DEFINE      LCD_RSREG   PORTE
DEFINE      LCD_RSBIT   0
DEFINE      LCD_EREG    PORTE
DEFINE      LCD_EBIT    1
DEFINE      LCD_RWREG   PORTE
DEFINE      LCD_RWBIT   2
DEFINE      LCD_BITS    8
DEFINE      LCD_LINES   2
DEFINE      LCD_COMMANDUS   2000
DEFINE      LCD_DATAUS      20

TRISD=%00000000
TRISE=%00000000

ADCON1=%00000111

LOOP:
 LCDOUT $FE,1
 PAUSE 250
 LCDOUT "HELLO"
 LCDOUT $FE,$C0
 LCDOUT "WORLD"
 PAUSE 250
GOTO LOOP
END
This is the LAB-X1 code, then I got distracted by the missing backlite resistor. Turns out the LCD does not have a backlite. Then the real world(work) came crashing in, so I haven't dug any further and not willing to say uncle yet. I'll dig in it tommorrow.


If I didn't want opinions I wouldn't have joined a forum, so bring them on. The skin is thick and the ego was buried years ago. If you don't break it, you ain't trying hard enough.