Search results
- Dictionarypic/pɪk/
noun
- 1. a photograph or cinema film: informal "a hard-hitting action pic"
Powered by Oxford Dictionaries
Feb 24, 2004 · Feb 24, 2004. #2. #define is a C language construct. It looks like you are using assembly though. One of the PIC assembly experts can give you specific help with the syntax for assembly. #define doesn't actually store anything in Ram. It is a simple replacement that the compiler does before compiling the code.
May 26, 2007 · The snake can either go RIGHT - LEFT - UP or DOWN. There are two buttons one turns the snake LEFT and the other RIGHT. Lets say the snake is moving RIGHT and I press RIGHT ( the snake will move down) I want to use 4 variables (one for each direction) The PIC will check these variables to see which way the snake is moving and then change to the ...
Jan 16, 2008 · I wanted to ask in assembly of pic - the difference between EQU and # define. EQU I understood but confusion in # define as the following line in book says... " A #define on the other hand tells the assembler to substitute two values where it finds a certain word e.g. #define led portb.4. Wherever the assembler finds the word led, it ...
Sep 18, 2005 · Hi guys, On a 16F877, I have set up eight flags using a single register called "flags" and I need to change them or toggle them individually. I know I can test the bit and change it, but is there an easy way to just toggle a single bit, for example?
Apr 25, 2009 · I am using the following code for Time Delays when programming the Pic 16F690. However, I am not totally understanding how it works to provide the time delay. Can anyone of you be so kind and explain it to me in detail how it works? // Using Internal Clock of 8 Mhz #define FOSC 8000000L // Delay Function #define _delay_us(x) { unsigned char us; \
Mar 15, 2006 · LIST P=16F627A ; Define PIC include "p16f627a.inc" ; include the defaults for the chip errorlevel -302 ; Suppress bank warning __config 3F43h ; WDT Off, EC Oscillator, CP off ;***** ;* Set Up Varibles * ;***** COUNT1 equ 0x20 COUNT2 equ 0x21 WTEMP equ 0x26 ;***** ;* Set Up Ports * ;***** bsf STATUS,5 movlw 0x00 movwf TRISA movlw 0x00 movwf TRISB bcf STATUS,5 ;***** ;* Set Initial Conditions ...
Feb 12, 2005 · im using C for programming PIC. but yesterday I wanna try something new and program PIC using assembly language. and im totally new with the use of MPLAB so forgive me for my following stupid questions. :) my question is, how do i set the PICs processor frequency in MPLAB (im using PIC16f84a...
Jul 26, 2011 · #define DS18PORT PORTA, 2 ; set up for sensor1 on portA 2 #define DS18TRIS TRISA, 2 call DS18B20_convert ; more main loop code etc #undefine DS18PORT ; set up for sensor2 on portA,3 #undefine DS18TRIS #define DS18PORT PORTA, 3 #define DS18TRIS TRISA, 3 call DS18B20_convert ; more main loop code etc #undefine DS18PORT ; restore ports for sensor1 #undefine DS18TRIS #define DS18PORT PORTA, 2 # ...
Feb 10, 2006 · The only difference is that EQU has to be a numerical value (and can be used in ASSEMBLER scripts, or to use it as a substitution while working with certain memory space - but has to be used first "MOVWF REG1") and #define is a TEXT substitution (or it can span through multiple bytes, such as #define GR_LED PORTA,4).
Oct 15, 2012 · I always create my own delays. If you use the Nop () definition, the while loop is 4 cycles so 5 x 200 = 1000. Code: unsigned char x=200; while (x--) Nop (); should be 1000 clock cycles ( 1mS on a 4MHz xtal.) BTW __delay_us () can be used in a delay function to give a better usage... Last edited: Oct 16, 2012.