Welcome to Laser Pointer Forums - discuss green laser pointers, blue laser pointers, and all types of lasers

LPF Donation via Stripe | LPF Donation - Other Methods

Links below open in new window

ArcticMyst Security by Avery

(Pic Basic Pro3) assembly language help needed

Joined
Jul 4, 2008
Messages
2,499
Points
113
SO I am wondering how many people here know Pic Basic Pro 3, and can program with it?

I am trying to re-write a program meant for an older PIC16F627A that needs to run on a newer PIC18F2455 which is already on a board (ECIO28P). (http://www.matrixtsl.com/resources/files/datasheets/ECIO-60-2.pdf).

It is written in PicBasic Pro3 assembly language.
I have asked around regarding edits to my code. I made a few changed already to it.


What does the code do you may ask? The code is meant to sample negative pulse (events) from an older digital survey meter and count them over a user defined time window. Simultaneously this device sends realtime data over non-inverted serial (9600baud) to a computer or possibly even bluetooth for smartphone logging. The code is also going to be modified to run on a 16x2 (1602 type) (HD44780) based LCD screen. The LCD screen can run in 4bit and 8bit modes.


Problems:

I am running into several stumbling blocks

1) I need to use the internal chip's internal speed of 48Mhz, but I am unsure how to set this part of the code up. Externally my PIC already has a external Xtal of 4Mhz. I need a faster response time. OCL20 = xxMhz

2) I need to find a way of hooking the LCD up to the PIC board. I have 24 pins and out of that only 23 are usable. (I'm thinking 4bit mode on the LCD due to the lack of free pins?)


If anyone could help, please have a look at the attached files.
The Scaler2017CST7rcopy is the modified version of the program for the modern PIC18F processor. The commented release document is the original code with no defined pins.

The .pdf file shows the circuit basic circuit layout.. It's kind of irrelevant as we have most of everything already on a single board.


If anyone can help with the code that'd be great. :thanks:
 

Attachments

  • Pic scaler 4 PBP3 commented release.doc
    36 KB · Views: 577
  • PICGMC CCT.pdf
    15.9 KB · Views: 548
  • Scaler2017CST7r copy.txt
    8.2 KB · Views: 321




Top