ON 20030204@11:09:00 AM at page: http://www.piclist.com/techref/microchip/16f84-rs232-an.htm RH-planet-b Rob Hamerling See also: /techref/microchip/language/c/S628.htm H:\techref\microchip\language\c\S628.htm ON 20030204@11:34:14 AM at page: http://www.piclist.com/techref/microchip/rs232.htm RH-planet-b Rob Hamerling See also: /techref/microchip/language/c/S628.htm techref microchip language c S628 ON 20030204@11:34:53 AM at page: http://www.piclist.com/techref/microchip/rs232.htm RH-planet-b Rob Hamerling See also: /techref/microchip/language/c/S628.htm Interrupt driven routines, using PIC hardware USART, with CTS flow control. Source code for CC5X C compiler with ample comments, easily adaptable to other PICs than the sample 16F628. ON 20030207@1:32:22 PM at page: http://www.piclist.com/techref/microchip/pages.htm DAV-MP-E62a David A Cary edited the page. Difference: http://www.piclist.com/techref/diff.asp?url=H:\techref\microchip\pages.htm&version=1 ON 20030207@10:35:35 PM at page: http://www.piclist.commicrochip/routines.htm JMN-EFP-786 James Newton published post 37659.6736111111 http://www.ee.ualberta.ca/~ee401/ seems to have archived the complete source code for quite a few robotic PIC projects |Delete 'P-' before: '' but after: '
I think Eric Smith's method of incrementing a pointer
        ; increment pointer
        incf    ptr
        bsf     ptr,4
is very clever. Here's a quick way to decrement that pointer:
        ; decrement pointer
        ; (warning: untested code)
        bcf     ptr,4
        decf    ptr
        bsf     ptr,4
|Delete 'P-' before: '' but after: ' /techref/microchip/mplab/msg302.htm Sometimes MPASM gives a Message [302] when you mess up the bank select ... but all to often MPASM gives no warning that I've selected the wrong bank.

|Delete 'P-' before: '' but after: ' asks: " Where can I find a PIC16F84 code to encode and decode REC-80 remote control protocol? Is there any standard pulse duraction for this protocol?" ' ON 20030208@8:59:38 AM at page: http://www.piclist.commicrochip/fr.htm JMN-EFP-786 James Newton published post 37660.3393055556 /techref/microchip/mplab/msg302.htm All too often I have the wrong bank selected.
Sometimes MPASM warns me with
Message [302]
but all to often it compiles and runs with no error messages (it just doesn't work right). |Delete 'P-' before: '' but after: ' /techref/microchip/12xfsr.htm describes bank select and pointer manipulation (FSR) for the PIC-12 -- anything useful for other chips ? |Delete 'P-' before: '' but after: ' /techref/microchip/mpasm.htm has some code that warns me when I try to put too many variables in the same bank. (Move that code to *this* page). |Delete 'P-' before: '' but after: ' /techref/microchip/pages.htm There's 3 different sets of memory select bits:
use banksel to set the appropriate bank to access RAM and SFRs with most instructions
use ???[FIXME:]??? to set the appropriate bank when accessing RAM with the FSR pointer.
use pagesel to set the appropriate page for CALL and GOTO.
|Delete 'P-' before: '' but after: ' /techref/microchip/fr.htm A very common gotcha is reading or writing a register when the bank select bits haven't been set properly (using "banksel" or some other method). |Delete 'P-' before: '' but after: ' /techref/microchip/fr.htm discusses file registers and RAM bank select for all PIC processors |Delete 'P-' before: '' but after: ' /techref/microchip/fr.htm bank select |Delete 'P-' before: '' but after: ' /techref/microchip/fr.htm Another thing to remember when writing a compiler: bank select.
Right now, I recommend that all subroutines (1) use the banksel macro before accessing any RAM or SFR location, and (2) make sure that bank 0 is selected when it returns (use
banksel 0
near the end of the subroutine).
|Delete 'P-' before: '' but after: ' What about
banksel
pagesel
pseudo-ops ? |Delete 'P-' before: '' but after: ' Will I have the correct byte synchronization if I transmit these alignment bytes in succession? |Delete 'P-' before: '' but after: ' A superb piece - exactly what I was looking for. Your use of the FERR correction is brilliant. Took me a while to figure out what you meant but once I did - fantastic! |Delete 'P-' before: '' but after: 'asks:
Hello All, I am new to PIC programming and electronics in general. I am currently working on my senior project for college, which involves creating custom MIDI controllers for use in an interactive sculpture. Right now I am working on trying to interface sharp GP2D15 sensors to a 16F84. I have programmed the assembly to do what I need it to do, and I have tested it with normal push-button switches. When I try to interface the sensors, I am unable to get results. I have hit a roadblock in my limited knowledge of this subject, but I believe I do know what the problem is... I just can't think of a solution.

The GP2D15 acts as an open-drain output, so to get any voltage out of the Vo pin, I need to pull it up to Vdd with a resistor. The problem is that if I wire this output to an input pin on the PIC, the input is also recieving the voltage straight from Vdd through the resistor, so the sensor is not doing anything.

Does anyone have any ideas on how I might solve this problem? Thank you very much, in advance.
' ON 20030209@10:14:18 PM at page: http://www.piclist.com/techref/microchip/links.htm JMN-EFP-786 James Newton edited the page. Difference: http://www.piclist.com/techref/diff.asp?url=H:\techref\microchip\links.htm&version=10 ON 20030214@3:03:21 AM at page: http://www.piclist.com/techref/microchip/devprogs.htm DL-aol-451 David Lei Questions: What is the most reliable/trustable reseller from which to buy a Warp 13a? ON 20030214@1:30:44 PM at page: http://www.piclist.com/techref/microchip/icd.htm JMN-EFP-786 James Newton published post 37666.2248032407 efoot@tesco.net refers to "http://homepages.tesco.net/efoot/ICDintro.html Might anyone be interested in a PIC 16F87X In-Circuit Debugger I wrote? If so, please email for more information." |Delete 'P-' before: '' but after: 'nathan@sputnickonline.com " http://www.sputnickonline.com/projects/programs/micro/uCOS_for_PIC18/ I've written a port for the popular uC/OS-II RTOS to the PIC18 chips." |Delete 'P-' before: '' but after: 'jdrmi@hotmail.com asks: " Hi, excellent programmer, where can i find the Andrew Sorriaux's pcb drawings? i want a single side one, can you help me?" |Delete 'P-' before: '' but after: ' http://www.microchip.com/download/tools/picmicro/code/mpasm/30400f.pdf MPASM(TM) and MPLINK(TM) PICmicro(R) quick reference guide (.pdf) |Delete 'P-' before: '' but after: ' /techref/microchip/../language/asms.htm There are many other assembly language compilers for PIC, and other useful tools for dealing with PIC assembly language. |Delete 'P-' before: '' but after: ' /techref/microchip/fsr.htm Some people access file registers indirectly, through the FSR and its own special dedicated bank select bits. |Delete 'P-' before: '' but after: ' http://www.microchip.com/download/tools/picmicro/code/mpasm/33014g.pdf _MPASM user's guide: with MPLINK and MPLIB_
the full manual is online in PDF format.
All (?) the error codes are listed in the appendices.
|Delete 'P-' before: '' but after: ' /techref/microchip/serial.htm PIC Microcontoller Serial Input / Output Methods |Delete 'P-' before: '' but after: ' /techref/microchip/gotchas.htm other gotchas |Delete 'P-' before: '' but after: ' Using MPLAB 6.10 and simulating a PIC16F870 I have problems with the simulator not updating Wreg and PortX when I use movwf and movf. This is -so- annoying, as now I do not know wheter or not my circuit is not working because of software error, or if the simulation is broken. I've tried to reset both the simulation and the computer.. Hopefully you can not begin to imagine the frustration of seeing your "movf porta" command have no effect on the output.
kjeims01@ryp.umu.se |Delete 'P-' before: '' but after: 'manfredo77@hotmail.com asks:
I need a solution for a big truoble that I have: IŽd like to read a code from a chip and it is protected (code protected). the device is PIC16C73B and IŽd like to know What should I do?
'