Search found 8 matches
- Thu Mar 21, 2013 9:07 am
- Forum: Flowcode V4
- Topic: Servo on PIC18F87k22
- Replies: 2
- Views: 3607
Re: Servo on PIC18F87k22
Hello, Thank you for the tip but it doesn't work yet. I took a look on the C code and it seems that the servo macros are based on interrupts on ccp1 (or ccp2) peripherals. But I was wondering if it could use ccp peripheral to generate timings without using corresponding pins? As I don't use this pin...
- Wed Mar 20, 2013 3:48 pm
- Forum: Flowcode V4
- Topic: Servo on PIC18F87k22
- Replies: 2
- Views: 3607
Servo on PIC18F87k22
Hello, I'm experimenting the servo macros on my custom board based on PIC18F87k22. I'm trying to drive a hobby servo on port RF7, but nothing moves. I tried to drive this pin manually and I can make this servo move, though I'm asking myself if there is some restrictions for using the servo macro com...
- Thu Mar 14, 2013 5:00 pm
- Forum: Flowcode V4
- Topic: Sending strings over RS232
- Replies: 5
- Views: 6668
Re: Sending strings over RS232
Thanks LeighM!
Disabling Extended Instruction Set did the trick.
Disabling Extended Instruction Set did the trick.
- Thu Mar 14, 2013 4:32 pm
- Forum: Flowcode V4
- Topic: Sending strings over RS232
- Replies: 5
- Views: 6668
Re: Sending strings over RS232
Hello, I'm experiencing the same problem with sendRS232String(): I'm using a software UART on pin RC5 (RX) and RC4 (TX) of a PIC18F87k22 microcontroller. In the attached .fcf file, I send "TEST" string as separate caracters with SendRS232Char() (the result on the TX line is OK), but when I try to do...
- Thu Mar 14, 2013 4:02 pm
- Forum: Flowcode V4
- Topic: 12-bit adc resolution PIC18F87k22
- Replies: 4
- Views: 4604
Re: 12-bit adc resolution PIC18F87k22
Maybe this 12-bit resolution factor is corrected in Flowcode v5?
- Fri Feb 15, 2013 3:16 pm
- Forum: Flowcode V4
- Topic: Solved ADC problem with 18F87K22 on easypic_pro_v7 board
- Replies: 5
- Views: 5647
Re: ADC problem with 18F87K22 on easypic_pro_v7 board
Hi, If you are using Flowcode v4.5: Did you try to change the faulty adc files in flowcode directories: PIC_ADC_28.c and PIC_ADC_29.c in C:\Program Files\Matrix Multimedia\Flowcode V4\Components may have bugs. You have to replace them with the ones in the following thread: http://www.matrixmultimedi...
- Thu Feb 14, 2013 1:29 pm
- Forum: Flowcode V4
- Topic: 12-bit adc resolution PIC18F87k22
- Replies: 4
- Views: 4604
Re: 12-bit adc resolution PIC18F87k22
I double check that, just in case: I confirm Vref is set to 500 x 10mV. But I took a look at the code of the ReadAsVoltage() function: float FCD_ADC0_ReadAsVoltage() { int iSample; float fSample, fVoltage, fVperDiv; #define MX_ADC_VREF_V 500 iSample = FCD_ADC0_ReadAsInt(); //Read as 10-bit Integer f...
- Thu Feb 14, 2013 11:30 am
- Forum: Flowcode V4
- Topic: 12-bit adc resolution PIC18F87k22
- Replies: 4
- Views: 4604
12-bit adc resolution PIC18F87k22
Hi, I'm using a PIC18F87k22 microcontroller and I'm stuck with the Read_as_string ADC component. I should have measurements between 0 to 5V, instead I have 0 to 20V, which is 4 times grater than expected. It seems that the conversion factor is using a 10-bit ADC resolution (max adc code = 1023) whic...