Piclist
A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
Search Results for "macros"
Post a new Thread
stephendbarnes - Apr 16 2003
Hello all,
I have been attempting to make use of Karl Lunt's PIC Macros with no
success
during the build phase. I have followed his instructions and emailed
h... 
xdriverdude - Feb 12 2004
Ok here goes another PIC Newbie question.
Background information:
I have an LM34DZ (Temperature Sensor) connected to the AD converter
and I can get the AD con... 
Madhu Annapragada - Aug 5 2003
Are you looking for a way to speed up what you do in Excel? If so you can do
this using Excel Macros (you can do the import, average, display using a
single or a gr... 
rtstofer - Nov 5 2004
In some ways it comes down to productivity. It has long been
rumored that IBM studied the issue extensively and came up with a
metric that a programmer coul... 
sergio masci - Mar 17 2004
----- Original Message -----
From: Phil <>
To: <>
Sent: Wednesday, March 17, 2004 5:01 PM
Subject: [piclist] Re: MPLAB 6.40 vs MPLAB 5.6x assembler error
... 
rtstofer - Feb 18 2005
--- In , "Phil" wrote:
>
> Its not at all unusual to have 2 btfss in a row - many valid uses
of
> that construct. I do hate skip instruct... 
Harold Hallikainen - May 23 2008
I normally use macros to do bank selects, but below it looks like you've
selected bank 3 instead of bank 1. The bsf is setting bank RP1 while I
think you want RP0.
Harold
> ... 
rtstofer - Nov 18 2003
Yes, Microchip did define some aliases to help with the not very
obvious way that btfss and btfsc handle branching. They are helpful
I suppose but they are not... 
macros [2 Articles]
- Feb 23 2003
I do all of my PIC software in assembly using MPLAB. I use a lot of macros in my code writing in order to make the coding simpler and easier to read and troubleshoot... 
rtstofer - Apr 16 2003
Second question first: Basic has a lot of included functions because
it is generally an interpreted language. That is, there is an
interpreter running inside t... 
devonsc - Nov 29 2004
Hi there,
I'm a newbie in using PIC microcontroller. Currently, implementing a
PIC microcontroller unit (PIC 16F876) for a project.
There are a few ... 
rtstofer - Jul 10 2004
Check out the documentation on LGOTO and LCALL - these are built-in
macros that handle paging.
--- In , "ntricoup" wrote:
> Hi to everyone,... 
rtstofer - Sep 11 2008
--- In p...@yahoogroups.com, "ray xu" wrote:
>
> Thanks! Great info.
Assembly code may very well operate faster than compiled C code
because you can be quite clever in ... 
sergio masci - Jan 23 2004
----- Original Message -----
From: Chad Russel <>
To: <>
Sent: Friday, January 23, 2004 1:31 AM
Subject: Re: [piclist] labels
> I think the work arou... 
Doug Reiland - Mar 8 2005
macros put the code "inline". Faster than a jump to a
subroutine, but if you use it several times in your
code, you eat up code space. You have to judge the
trade... 
Eirik Karlsen - Apr 18 2006
Paul,
in some special cases it can be done very simple;
divide by 2 is a right shift, if you want the remainder you'll have
to save the bits that are shifted out and process the... 
Phil Seakins - Jan 10 2005
At 05:05 PM 10/01/05, sirtiffguy wrote:
>So heres my stumper of a question... I am using multiple banks of
>memory (16 bit pointer) in a Pic16f877. I am recieving d... 
Phil Seakins - Dec 5 2004
At 08:31 AM 5/12/04, rtstofer wrote:
>Using PIC C Lite (a derivative) the form PORTA |= 0x30 will work and
>PORTA &= ~0x30 will probably turn them off.
>Again, ch... 
Brad Woolley - Jun 12 2003
Hi,
The 16F84A has enough ports for the full 8 bit LCD, one incoming
serial, and RA4 is spare although not the 'easiest' port to work with for
outputs, I'm als... 
Alan Marconett - Aug 14 2008
I did use configure -> select to set the processor. I saw the linker file
as well. Not clear on whether I need the c018 or co18i file, I'll check
that out. Same for the linke... 
rtstofer - Dec 13 2004
There is a rather complete series of 'Special Instruction Mnemonics'
that perform various tests and branch-on-condition. These mnemonics
often generate two ... 
Eirik Karlsen - Sep 19 2008
Well, I can't really see why people, and especially beginners should be hell bent on using C and shying away from asm.
Actually I think beginners are better off starting with asm ... 
Fagundes Elétrica - Sep 28 2003
Hi;
Here are the code for 16F72, you can change it for your aplication.
I don't use RW control. It is grounded!
[]'s
Marcelo.
;;;;;;;;... 
sergio masci - Oct 21 2003
Trent wrote:
> Hi All,
>
> I have started using the fixed point math code from uChip. I
> recently made a call to it during the ISR and quickly realized I wa... 
rtstofer - Dec 21 2003
Rather than try to remember what bank to select {0..3} you can use:
banksel name
where name is the name of a SFR or variable.
It doesn't remove the requirem... 
Tom Walker - Apr 19 2003
Good description, Bert, but I'd like to correct one thing (and maybe clear
up some of the overall confusion).
In your second case, you imply that the...well, let... 
Kees Stenekes - Mar 3 2004
Hi, I even made some assembler-macro's that can be
used for the '628. They work perfectly.
Kees.
;==========================================================... 
sergio masci - Nov 12 2004
----- Original Message -----
From: Vic Fraenckel <>
To: PICList <>
Sent: Friday, November 12, 2004 1:03 PM
Subject: [piclist] Good HLL platform
>
>... 
rtstofer - Apr 11 2003
My code example is actually 1 word longer as I didn't clear PORTB as
you did.
All instructions are 1 word (14 bits) long - including GOTO and
CALL. Some i... 