Search Engine www.edaboard.com

Pic Table

Add Question

89 Threads found on edaboard.com: 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!!!
am i right pic takes 4 clock pulses for 1 machine cycle and in pic machine cycle = instruction cycle i.e all instruction takes one machine cycle? is there any difference in machine cycle for RISC and CISC?
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
Hi everyone, I have a problem with writing to a hitachi hd44780 16x2 display using the pic16F1459. I have written several programs in C for this particular arrangement so I know from this that the wiring, LCD and pic are all working correctly. I decided to switch over to writing in assembly because I wanted more control over the pic. I a
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
i cant seem to get this keypad to work with a pic 16F1937 on portD using any code that isnt made by 'flowcode' software package or are test routines for data sheet on my keypad that is an 'E-block' module and how it is wired // 3x4 Keypad with pic 16F1937
Hi, This tutorial might also help
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 table.how many cycles is required before taking a new adc reading.how 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
How can you fullfill your pic memory with if/else statements only? The 877 has 8K memory.. to get it full you must have thousands of if/else statements. Also, maybe a swtich case is better suited for the job, and, if you post the code, someone might suggest a better solution than using if/else statemens (the most common is a loop comparing array el
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
Zuisti is showing the method I described. As long as you use the HIGH/LOW directives before actually making the call it should correct for the page boundary wherever it is. You program will still overflow the table as you have it at the moment though. You must limit the value added to PCL so it is never more than the number of entries in the table