Old 02-28-2017, 05:43 AM #1
Seoul_lasers's Avatar
Class 3R Laser
 
Join Date: Jul 2008
Location: Victoria, British Columbia
Posts: 2,308
Rep Power: 4172
Seoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond repute
Send a message via Skype™ to Seoul_lasers
Seoul_lasers Seoul_lasers is online now
Class 3R Laser
Seoul_lasers's Avatar
 
Join Date: Jul 2008
Location: Victoria, British Columbia
Posts: 2,308
Rep Power: 4172
Seoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond reputeSeoul_lasers has a reputation beyond repute
Send a message via Skype™ to Seoul_lasers
Exclamation (Pic Basic Pro3) assembly language help needed

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.
Attached Files
File Type: doc Pic scaler 4 PBP3 commented release.doc (36.0 KB, 7 views)
File Type: pdf PICGMC CCT.pdf (15.9 KB, 5 views)
File Type: txt Scaler2017CST7r copy.txt (8.2 KB, 7 views)


__________________
650nm ~350mW DVD 20x diode RyanSoh3 Class IIIb
650nm ~350mW DVD 22x 3.5mm labby build 2010 Class IIIb
532nm 10mW-15mW DPSS Module IR filtered(S.Korea)RyanSoh3 Class IIIb
450nm CarbonFiber ElectricPlasma build 9mm +6W Class IV
445nm 3.49W pk ~3.15W av. Sinner Cypreus II +DTR 9mm 445nm Class IV
445nm RHD Saber Twins 2.7W ~2.35W pk Class IV
445nm A140 module x2 Maxsink Class IV
405nm Daguin Kryton Groove SO6J 700mW build. Class IV
405nm Olike 560mW-600mW pen sold Scopeguy20
Class IV
337.1nm TEA Nitrogen laser project 2011 Class IIIb
---------------------------------------------------
Die4Drivers 1.3v lab laser/projector driver

Laserbee 3.2W Deluxe LPM
ARGMeter 1.1v
Ophir 20C-A sensor

Peregrine 1.5.0 is working now on MacOSX Yay!!
Seoul_lasers is online now   Reply With Quote










Reply





Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On











Loading












Privacy Policy | Advertising Disclaimer | Terms of Use


 


All times are GMT. The time now is 06:05 AM.


Powered by: vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
Privacy Policy | Advertising Disclaimer | Terms of Use
Copyright (C) 2017 Laser Pointer Forums, LLC