Search Engine

Pic Table

Add Question

89 Threads found on Pic Table
Depending on your hardware, you may need to store the values in the integer format in the range of 0-255 (8 bit; unsigned) and as others have pointed out earlier, you need to store only for the range of 0-90 degrees. If you are using pic with the built in PWM facility, you need not use more than 16 points (for 0-90 range) in my opinion and perhaps
Both the BTFSC and BTFSS instructions are supposed from the midrange Microchip's pic familly. Anyway, when it is said "many lines of code" don't necessarily means as being not a fast implementation. You could think about put all the 4 possible results in a lookup table by using the RETLW instruction.
see my codes here,I am using assembly I read EEPROM values and would like to use them for having an approxiamtely sine wave at the output when a low pass filter is added, LIST P = P16F1936 INCLUDE "P16F1936.INC" __CONFIG H'8007',H'3FAA' __CONFIG H'8008',H'3FBC' UDATA_SHR W_TEMP RES 1 ;LOCATION FOR SAVING 'WREG' DURING INTERRUPT
I never seen a timer in pic that works directly from external oscillator. Usualy, Fosc/4 are user as 1:1 prescaller value.
Hi,somebody know how to generate Amplitude Shift Keying using pic microcontroller? Is it possible ? If yes then how? I don't want the code, I just want know the possible logic ? If some body have the knowledge, please share with me? It will be very helpful for me and maybe others! Thanks!!!
The Instruction Set chapter of the pic reference manuals (e.g. pic 16, pic18) have a table "Instruction Set Summary" that answers your question. Some instructions are one cycle, some two or even three.
Hi, i just started to learn pic programming in C language, and i wish to make a 3 digit counter. i want to ask that is there anyway to write the code in a short way? i saw a tutorial is about assembley language that can write in a table instead of set all the display number, but i wish to learn C language i wrote for 1 digit counter before which i
Hi all, I am trying to implement SPWM using pic16f877a. I have got the initializaion of the pwm module correct and the pwm is working normally. When i give a particular duty ratio the pulse is obtained at that particular duty and the specified frequency. But when I try to give a sine table of around 61 values for 90, the pulse pattern is not
Thank you for the example that is what I meant but I didnt make it clear. I dont want all of the data Im sending to the LCD in main. - - - Updated - - - I dont fully understand what you mean by this because I have the RS and E lines also on the port. Hi, You
Try to understand pic.2 in the article and consider how it can be implemented in a processor. Hint: the variable delay line is usually realized as a ring buffer. Start with a fixed delay y(n)=x(n)+ax(n-b) (similar to an echo) and if it works design the modulation.
Actually, it's a Arduino Rotor encoder library file, I want port it into MikroC for pic. const byte pinA = 2; //encoder pin A to Arduino pin 2 which is also interrupt pin 0 which we will use const byte pinB = 3; //encoder pin B to Arduino pin 3 which is also interrupt pin 1 but we won't use it byte state = 0; //will stor
The high level like C langauge cann't access PC counter , So Assembly langauge is prefer to pre setup, I think so. Why you donn't use 74C922 encoder chip to link between 3x4 keypads and The pic CHIP . Port scan like in PC Computer is make loosing time because Ex. we can gennerate table for change to the other langauge in the next time in memory
hi all i am working on pic assembly and need ur help . i implemented a lookup table instead of accessing the table through a call instruction what if i call it through goto instruction.. would the retlw gets the same value or it would be different.
No. Adding decimal 48 (ascii zero) will convert it to an ascii digit, this application uses a 7-segment display so a look-up table is the best solution. I suggest you use code from the piclist web site: to split the number into hundreds, tens and units then use a small look-up table
How is load regulation achieved in pic 16 by using correction many cycles is required before taking a new adc do we essure accuracy by taking single adc reading
Hello!!! I am not able to generate Sine wave of frequency 200Hz when configured PWM Frequency of pic16F877A to 10KHz and pic is operating at 20MhZ Crystal. This is MATLAB Code to generate table. fSampling = 10000; %10Khz Sampling Rate F = 200; %200hz Frequency t = 0:1/fSampling:1-1/fSampling; xSignal = si
Dear All Please find the attached picture It would be much appreciated if some one can explain the each block of pic Thanks in advance 92657
You need to start with where the numbers come from in the first place (assuming they aren't random). Interpolation reduces table sizes. I recently did a 16 bit lookup table (65536 effective values) using two 64 variable tables and two stage interpolation which needed two case statements - one with 8 values, one with 16 (by splitting the (...)
When I worked with 6502 I could use an INDEX REGISTER to load the working register with a value. LDA table,X With the pic16F178X instruction set this doesn't seem to exist. Instead I'm trying to resort to the BRW command to offset my branch. I'm getting close but some junk characters are being displayed and it is skipping num
Dear All Can I have the simple example in assembly that effect the page memory boundary crossing and how handle the problem 1. one example for effect of 2k boundary crossing effect 2. how about solution above 1 My MCU is pic16f877a It would be much appreciated if some one can give a this help for my understanding purpose. co