16f819 question

Started by meriachee in Piclist13 years ago 4 replies

I am using the PicBasic compiler to do some experimentation with the PicMicro 16f819 chip. The book says that when you use the...

I am using the PicBasic compiler to do some experimentation with the PicMicro 16f819 chip. The book says that when you use the poke command to change PortA, you change ALL of the ports (input or output). I want to use these ports to drive bi-colour leds, don't much c


Re: Microchip MCP23016 with PicBasic Pro?

Started by Chad Russel in Piclist14 years ago 3 replies

Did you get this working? An interesting chip, but talk about lack of documentation...I am trying to figure out the difference...

Did you get this working? An interesting chip, but talk about lack of documentation...I am trying to figure out the difference between latched data and pin data. Chad --- In , Jon Chandler wrote: > Has anyone used the MCP23016 I/O expander


LCD Problem

Started by Anonymous in Piclist14 years ago 9 replies

Hey, I have a Serial LCD from www.seetron.com and it appears that when I send output to it, it appears as gibberish. Any ideas as...

Hey, I have a Serial LCD from www.seetron.com and it appears that when I send output to it, it appears as gibberish. Any ideas as to why? I'm using a 16F628 with picbasic from melabs. My code is: Serout 1, N2400, ("Hello") My baud rate is correctl


16F628 on-chip eeprom problem

Started by Vladimir M Skrbic in Piclist14 years ago 2 replies

Hello everyone, I'm new to the group and I'd like to ask a question. I've recently moved all my projects from 16F84 to 16F628...

Hello everyone, I'm new to the group and I'd like to ask a question. I've recently moved all my projects from 16F84 to 16F628 mcu's. Yesterday I've tried to write data to the internal (on-chip) eeprom of 16F628 using PicBasic Pro with little (or no ;) sucess. Would anyone care


Electronics speed control

Started by randy ram in Piclist14 years ago 5 replies

Has anyone worked on a speed control before. I want to drive a small dc motor. The same as the radio control electric motors. I...

Has anyone worked on a speed control before. I want to drive a small dc motor. The same as the radio control electric motors. I currently use PicBasic Pro. Thanks ----- Original Message ----- From: cdb Date: Sat, 1 Nov 2003 13:57:03 +1000 To:


Serout2/Serin2??

Started by ramtec73 in Piclist14 years ago 4 replies

I am trying to send out data from a stored location to a 916MHz RF transmitter. Then receive it on another PIC. Can I use ...

I am trying to send out data from a stored location to a 916MHz RF transmitter. Then receive it on another PIC. Can I use SerOut2 PORTB.1,4,[rpm] 'to sent it to the TX and Serin2 PORTB.1,4,[rpm] 'to receive it I am using PICBasic Pro. A


Stepper motor control with PIC

Started by Roy Wheaton in Piclist13 years ago 7 replies

Has anyone developed software and/or hardware for controlling the absolute position of a stepper motor with a potentiometer? It...

Has anyone developed software and/or hardware for controlling the absolute position of a stepper motor with a potentiometer? It has to be a stepper, not a servo. I need the stepper to follow the movement of a potentiometer shaft around a 180 degree axis. I work in PicBasic


Differences in PicBasic Pro code between a 16F877A and 16C765

Started by castaways3373 in Piclist15 years ago 1 reply

i have a code that i wrote and tested on a 16F877A. i couldn't use a 16C765 because i didn't have any 24MHz xtals, but now that i...

i have a code that i wrote and tested on a 16F877A. i couldn't use a 16C765 because i didn't have any 24MHz xtals, but now that i do, i can't successfully program the same code onto the 16C765. the progam will read in a value from a separate A/D and then output the data serially.


STR compare in picbasic

Started by comalco2000 in Piclist16 years ago 1 reply

I have a string in a variable array ie STR mydata(0) = "Hello" I would like to compare it to a list of around 60 other...

I have a string in a variable array ie STR mydata(0) = "Hello" I would like to compare it to a list of around 60 other strings to see if they match. Both Case and blanks are sensitive! ie STR storeddata(0) = "Random Text" " "


Using Identifiers for pins in PicBasic Pro

Started by castaways3373 in Piclist15 years ago

With PBP, are you not allowed to use identifiers as pins? Such as this code to turn on all LED's on PORTB in succession, pause,...

With PBP, are you not allowed to use identifiers as pins? Such as this code to turn on all LED's on PORTB in succession, pause, then turn all off TRISB = 0 N var byte for N = 0 to 7 PORTB.N = 1 Next N Pause 10 PORTB = 0


Quick Intro & Quick Question (Mplab Sim)

Started by mechatronicscontrol in Piclist10 years ago

Hello All, Name is nick, I'm an engineering grad student working on a hobby project. I'm trying to use the PIC18F4431 to do some basic DC...

Hello All, Name is nick, I'm an engineering grad student working on a hobby project. I'm trying to use the PIC18F4431 to do some basic DC servo motor control, but, as I'm new to assembly and MPLAB (used PicBasic), decided to try something else first. I've downloaded some code from Myke Predko, successfully compiled, and running in the Mplab Sim. Now the question: In the Watch Window, th...


Quad encoder problems

Started by smitty505000 in Piclist12 years ago 1 reply

Hey all, I am trying to get a couple of quad encoders to work in Picbasic pro. I know the basics of how they work and simple programing...

Hey all, I am trying to get a couple of quad encoders to work in Picbasic pro. I know the basics of how they work and simple programing abilities. Here is what I have: Qty 2 quad encoders with 36 slots each Pic 16F628-20p parallel lcd I want to be able to return a value of 1-36 from each encoder so I know the exact position of each. The code I wrote is very simple using if t...


Re: PicBASIC speed and code efficiency

Started by Eirik Karlsen in Piclist13 years ago 6 replies

Proton looks interesting. I hope it has function calls, arrays, and good speed. I'll run the demo and find out. Sergio, your XCSB could...

Proton looks interesting. I hope it has function calls, arrays, and good speed. I'll run the demo and find out. Sergio, your XCSB could do with a slight 'facelift' (IMHO), no pun. Most Win users would surely prefer a proper MSWin program & GUI... appears very Linux now. Also support for more chips.


lcd hd44780 type help

Started by joel_0021 in Piclist9 years ago 1 reply

hey guyz i'm having a problem in programming an LCD my LCD is LM052L it has a built in LSI HD44780 and i'm using a pic16f877a i don't know...

hey guyz i'm having a problem in programming an LCD my LCD is LM052L it has a built in LSI HD44780 and i'm using a pic16f877a i don't know what's the problem. this is my picbasic program: Device=16F877A XTAL=4 ALL_DIGITAL=true TRISC=0 LCD_DTPIN=PORTC.0 'CALL ASSIGNED ADDRESS TO PORTC.0 LCD_RSPIN=PORTC.4 LCD_ENPIN=PORTC.5 LCD_INTERFACE=4 '4 BITS LCD_LINES=2 ...


SRF04 Help

Started by John Baker in Piclist14 years ago

Hello. I am new to PICs and migrated from BS2s. I have PicBasic Pro, the EPIC programmer, and Microcode Studio. I have interfaced a...

Hello. I am new to PICs and migrated from BS2s. I have PicBasic Pro, the EPIC programmer, and Microcode Studio. I have interfaced a Devantech SRF04 module to a PIC16F84a running at 4MHz. It doesn't seem to work. Here is my test code.    dist var word   &


Serout2,Serin2 Help

Started by ramtec73 in Piclist14 years ago 9 replies

Here is what I have. I am using a PIC16F877A and PICBasic Pro [code] DEFINE LCD_DREG PORTD DEFINE LCD_DBIT 4 DEFINE LCD_RSREG PORTE DEFINE...

Here is what I have. I am using a PIC16F877A and PICBasic Pro [code] DEFINE LCD_DREG PORTD DEFINE LCD_DBIT 4 DEFINE LCD_RSREG PORTE DEFINE LCD_RSBIT 0 DEFINE LCD_EREG PORTE DEFINE LCD_EBIT 1 DEFINE LCD_COMMANDUS 2000 DEFINE DATAUS 50 DEFINE OSC 10 include "modedefs.bas" temp VAR WORD TRISA = %11111111 ' Set PORTA to all input ADCON1 = %10000101 Low PORTE.2 ' LCD


Re: PicBASIC speed and code efficiency

Started by Aver...@... in Piclist13 years ago

In a message dated 8/10/2005 7:19:34 P.M. Eastern Daylight Time, s...@xcprod.com writes: The one thing I REALLY like about the...

In a message dated 8/10/2005 7:19:34 P.M. Eastern Daylight Time, s...@xcprod.com writes: The one thing I REALLY like about the 16 series is that they are very cheap and you can build powerful sy


Changing UART baud rate

Started by Mada Jimmy in Piclist13 years ago

Hi,   With PICBASIC, how to change UART baud rate while program running? So I ca

Hi,   With PICBASIC, how to change UART baud rate while program running? So I ca