ON 20030401@6:12:25 AM at page:
http://www.piclist.compiclist/weedfreq.htm
JMN-EFP-786 James Newton published post 37712.0076273148
/techref/piclist/tzhang
some lcd can't init with this program, because the lcd need time
to process the instruction. so i insert some "call int_del"
into the start routine. then it works.
|Delete 'P-' before: '' but after: 'fxbill@attbi.com asks:
Hi,|Delete 'P-' before: '' but after: 'why2hard@hotmail.com asks:
I'm looking for a program to write to a PIC 12C671 that will allow operation of a radio control servo with a potentiometer. I have seen such a device and it consists of nothing more than the Pic soldered onto a pot.. Any help would be gretly appreciated. I have a PIC programmer and understand it's operation, but know little of writing the hex file to program the chip with.
Thanks in advance for any help!
fxbill@attbi.com
Hello everybody!' ON 20030409@8:01:32 AM at page: http://www.piclist.compiclist/projects.htm JMN-EFP-786 James Newton published post 37720.0238078704 mjhun4@student.monash.edu.au asks:
I need help regarding interrupt and some properties in MPLAB6.
Problem 1
---------
I'm trying to write a simple program, who can generate an interrupt on RB0/INT (PORTB), Hi-low edge.
I'm using HT-PICC, MPLAB V6.13 + mplabfix.zip and PIC16F84A.
I wrote a single prog in assembler and it works properly.
Can anyone give me a clue, or the answer? I appreciate all helps.
Problem 2
---------
How can I activate the arrow in the main window in MPLAB while debugging?
(A green arrow appear with every step and move to the line in progress). Also I can't click on [Run to cursor] on right click in the main window.
Thanxs in advance.
/Trad S.
Hi there,|Delete 'P-' before: '' but after: 'cjwichma@uncc.edu asks:
I am currently working on a gas turbine and am investigating the use of "pic micros" to control an automatic shutdown system. I have no idea about this sort of electrical gadget, other than it was suggested to me as an Idea. I thought I'd try and get in contact with people who know what they're on about.
the data input to the pic will need to be through thermo couples and pressure transducers, all which give volt readouts. Is there any advice you could offer me on where to start to get this project underway?? is it possible to control the turbine through the pic?? All I need is a controller that will shut down a fuel pump if a temp or pressure get too high.
thanks for your time, any comments would be greatly appreciated.
kind regards,
Matt Hunt
I recently wrote a assembly language program for an LCD display|Delete 'P-' before: '' but after: 'poison1@freemail.org.mk asks: " I have PIC 16C505. Which hardware and software can I use to program and read this one?" |Delete 'P-' before: '' but after: 'chaaban_talal@hotmail.com asks: " how can i measure a resistance? (pic 16f873)" ' ON 20030412@2:25:11 PM at page: http://www.piclist.compiclist/questions.htm JMN-EFP-786 James Newton published post 37722.6331365741 pa.slug@verizon.net asks:
using the 16F84, I am now trying to use the same program for the
18F452, can you help me on the things I need to change in the
program such as registers and/or instructions. I used 8-bit
interface and a 16x2 LCD. If there is a way to simply convert the
16 family to the 18 family I would appreciate it if you could assist
me in finding it. thank you.
A Pic Newbie, I'm studying the excellent cheapic tutorial. Somehow when making a change to the project I code protected my 16f84a. can someone help me understand how to use this excerpt from Microchip ds30262e? or is there an easier way to erase it and start over?|Delete 'P-' before: '' but after: 'paulwlipscombe@yahoo.co.uk asks:
Thanks,
Ray
"4.1 Disabling Code Protection
It is recommended that the following procedure be performed
before any other programming is attempted. It
is also possible to turn code protection off (code protect
bit = ‘1’) using this procedure; however, all data within
the program memory and the data memory will be
erased when this procedure is executed, and thus,
the security of the data or code is not compromised.
Procedure to disable code protect:
1. Execute load configuration (with a ‘1’ in
bits 4-13, code protect)
2. Increment to configuration word location
(2007h)
3. Execute command (000001)
4. Execute command (000111)
5. Execute ‘Begin Programming’ (001000)
6. Wait 10 ms
7. Execute command (000001)
8. Execute command (000111)"
I need some advice, I am new to PIC programing and have to write a basic program using a 16C55, where if 9 switch i/p are on (RB0 - RC0)then 4 o/p led's will flash (RC3-RC6)in an order RC3,RC5,RC4,RC6, but if 1 of the i/p is off then RC7 would light up. Does anyone know of a site where i could get a similar program to get a rough idea of what i need.' ON 20030422@10:41:59 PM at page: http://www.piclist.com/techref/piclist/questions.htm SN-WPC-C41 Sajid Naqvi Questions: Hi everybody, I am working on 16F870 and obtained binary data from A/D converter on CH0, I have also displayed it as BCD on 4 digits multiplexed display.
Thanks, Paul
Hi Everybody ,' ON 20030428@7:40:50 AM at page: http://www.piclist.compiclist/weedfreq.htm JMN-EFP-786 James Newton removed post 37736.8309259259 |Delete 'meeesg2@yahoo.com asks: " may you help me in my assigmnet of Uart inC version [Integration of lock and UART O/P] using 16F84 chip..
I am a graduate student , and as per the course we are doing our course project as Mobile robot using PIC18F452 .And as a start we are going to design a motor and its respective driver .We have selected driver as A3966 so i need any kind of help regarding this.It will be of great help if you could provide me these information .Waiting for yor earliest response.
Bye .....Prikul
Questions:
how can i convert this MPLAB languange to C version??' ON 20030429@2:10:31 AM at page: http://www.piclist.com/techref/piclist/begin.htm DA-softhome-H52 Diede A. van Abs Says link to bubblesoftonline.com is dead. (also tried in separate browser window, site is gone) ON 20030430@7:29:13 AM at page: http://www.piclist.compiclist/questions.htm JMN-EFP-786 James Newton published post 37741.2843634259 gamach1@ispwest.com shares this code:
_cvreg equ 0x0d
_bitreg equ 0x0e
_timer equ 0x0c
;*******set up porta**************************************************
clrf _porta ;Clears porta
bsf _rp0 ;sets rp0 in status reg. to '1'
;ie moves to bank 1 in reg.file.map
movlw 0x00 ;moves zeros to wreg.
movwf _porta ;moves zeros to 86H in reg.file.map
;ie sets all portb pins as outputs
bcf _rp0 ;clears rp0 in status reg. to '0'
;ie returns to bank 0 in reg.file.map
;*********** TRANSMIT SUBROUTINE *************************************
clrf _cvreg
clrf _bitreg
clrf _timer
bsf _ra0
;*********************************************************************
_Transmit movlw 0x55 ;move 0101 0101 into _cvreg
movwf _cvreg
movlw 0x08 ;move 8 (times) into _bitreg
movwf _bitreg
many thanks...
|Delete 'P-' before: '' but after: 'pes@flatrate.net.au asks:I am using a PIC 16F628 with a 2x16 LCD attached in 8 bit mode to PORTB. I also have 8 SPST buttons attached to PORTB. I read the switches and then do output to the LCD. The LCD output is corrupted by leftover latches/pin levels from the read. I am aware of the pitfalls of write/read sequences on a PIC port but I've tried every combination (except the right one !!!) to clear, reset, etc. If I eliminate the reading of the switches, the LCD routines work as they should. Some test code that I've written indicate that residual bits in the PORTB latches are getting or'd into the LCD output. How to I get rid of the residual bits from a PORTB read. Attached is the last version of the switch read code which by itself reads the switches correctly. Thanks Ted in Atlanta ; *************************************************************** ReadKeys: clrf PORTB bank1 ; All PORTB inputs movlw b'11111111' movwf TRISB PullUpOn ; Turn on pullups bank0 Deb: comf PORTB, W ; Compare against xorwf OldSwIn, W ; last accepted read bz Deb ; Will be zero till key is released clrf PORTB nop ReadAgn: comf PORTB, W ; Read all 1's as 0's movwf SwIn ; Save First read comf PORTB, W ; Read switches again xorwf SwIn, W ; Are 2 reads identical bnz ReadAgn movf SwIn, F ; Two reads are the same bz ReadAgn ; Branch if reads were no keys movwf OldSwIn clrf PORTB
Can anyone assist with the following project?' ON 20030430@7:33:38 AM at page: http://www.piclist.com/techref/piclist/questions.htm JMN-EFP-786 James Newton Published and replied to post 37740.5127893519 |Insert 'Scaling is done by multiplication. Look in the routine library' at: '' screesh@telus.net asks:
suggested flow diagram?
suggested C program?
suggested assembler program?
any of the above would be most helpful.
Processor = PIC16F84
port b = 8 bit dip switch (input)
port a,0 = event detect (input)
port a,1 = operate relay (output)
Task: read port b bits and operate relay depending on event detect
portb 0 = select mode A or mode B.
portb 1,2 = operate relay 'n'(6,12,24,never) hours after no event detect.
portb 3,4 = operate relay 'n' minutes delayed after event detect
portb 5,6 = operate relay for 'n' seconds duration if in mode A
portb 7,8 = operate relay for 'n' minutes if in mode B
I'm working with a 16C71, I am running a D to A conversion for|Delete 'P-' before: '' but after: 'mihaiv@opensys.ro asks:
input in the 2 to 3V range. I need to scale this data to determine duty cycle for a PWM output. The output range is 0 to 5V. I need some pointers on how to do this.
For CC5X C-programmers:|Delete 'P-' before: '' but after: 'catchdulip@yahoo.com asks: " I am a very beginer for this field and really need to learn all about PIC(A-Z) Are there any other web sites to learn?" ' ON 20030430@9:26:31 PM at page: http://www.piclist.compiclist/questions.htm JMN-EFP-786 James Newton removed post 37741.4725231482 |Delete 'suresh_slm@hotmail.com asks: " i am new to this PIC16F877. i want a simple model program to run it in MPLAB icd. will u plz send me that.i am in need of this program very urgent." '
Hi !
Is there a way to offset the automatic allocation of RAM in CC5X? Say for example, I want my char variables to be allocated starting with 0x70, or in EEPROM, NOT at 0x20. Is there anything besides writing "char MyVar @ 0x70, ..." etc. ? Thanks for your answer! Mihai, Bucharest, Romania.