Quantcast
Channel: Laser Pointers
Viewing all articles
Browse latest Browse all 5560

(Pic Basic Pro3) assembly language help needed

$
0
0
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/f.../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:


Viewing all articles
Browse latest Browse all 5560

Trending Articles