![]() Sorry about Proteus related questions i am new to this forum, will read the forum rules. This is a ccs forum - not Isis, which does not work reliably with ccs, let alone the real world. Seems to be stable and from what i read the cpu warning is due to my computer limitations for proteus simulation and not the pic controller speed itself I have fixed the warnings by grounding the R/W and disabling it in the FLEXLCD. Should i be worried for the errors above and will there be a problem with the cpu overload if i try to measure frequency like 10-30 khz ? What is the maximum frequency this code can measure ? I have a voltage source connected to RA0 in the simulation I thought it is missing a battery for voltage generator for input of RA0. Printf(lcd_putc,"%LU Hz\r\n",freq) //and print frequency Lux=(float)(volts*1333) // to be calibrated for measuring lux with photodiode Volts = (float)(adc_value * 5)/1023.0 // adc to voltage conversion 16bits of freq counterįreq=make32(freqc_high,freqc_low) //use new make32 function to join lsb and msb If (t1_overflow) //check one last time for overflowįreqc_low=get_timer1() //get timer1 value as the least sign. Setup_timer_1(T1_DISABLED) //turn of counter to prevent corruption while grabbing value math: if y=216 then outer loop cycles is off by 211 cycles. math: if x=62 then inner loop takes 4942920, have to fill 57080 cycles math: if x=62.87781 then inner loops takes 5mil instructions Setup_adc(ADC_CLOCK_DIV_64) // setup_adc(ADC_CLOCK_DIV_8) - zashtoto cpu e 20mhz i protheus dava greshka za TAd time 1.6usĭelay_us(20) //you need this before the first reading The lcd_init() function should always be called once, Also weirdly all the time the frequency is displayed with a number 3 times bigger ( but i think thats only trouble in the simulation and in real it will not be 3x number). It seems that every frequency i try to input in Proteus above 3000 Hz with VSFFM gives me also an error that simulation is not in real time due to cpu overload thought if i wait long enough it still will display the frequency. I have the frequency input connected to RC0 and the voltage at RA0 Hello i am trying to make a frequency and volt meter with PIC16F877A (20 MHz crystal and 22pF capacitors) using the CCS ex_freqc.c and the FLEX420_LCD.C. Please do not post bug reports on this forum. CCS :: View topic - Proteus error messages with CCSįAQ Forum Help Official CCS Support Search Register Profile Log in to check your private messages Log inĬCS does not monitor this forum on a regular basis. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |