Search found 12 matches

by RTJNair
Thu Mar 29, 2018 4:12 am
Forum: Flowcode V6
Topic: I2C for PIC24F32KA301 not working
Replies: 3
Views: 3459

Re: I2C for PIC24F32KA301 not working

Hi Benj, Sorry for the delay. I was on a short holiday. Thanks for the reply. As requested, the modified program is attached below. Got it working by connecting both the I2C devices ie; OLED and AMG sensor to channel 1 (hardware) with the common clock speed of 400KHz. Can you please look into the re...
by RTJNair
Sun Mar 18, 2018 3:53 am
Forum: Flowcode V6
Topic: I2C for PIC24F32KA301 not working
Replies: 3
Views: 3459

Re: I2C for PIC24F32KA301 not working

Benj/Leigh, Somehow, I was able to get the HARDWARE channel 1 (B8/9) working with the thermal sensor AMG8833. Since I intend to use an I2C SSD1306 Oled/component also, can you please help me out in getting the I2C HARDWARE channel-2 (B2/15) working for this application. I ran out of ideas to get thi...
by RTJNair
Tue Mar 13, 2018 3:24 am
Forum: Flowcode V6
Topic: I2C for PIC24F32KA301 not working
Replies: 3
Views: 3459

I2C for PIC24F32KA301 not working

My application (FC chart attached below) was to link an AMG8833 to a 3.3V PIC24F32KA301 on I2C but couldn't make it work on any of the two hardware channels. Neither the software nor hardware (tried both channels) options were also working. However, the 1-sec led was flashing correctly if I disable ...
by RTJNair
Mon Jan 22, 2018 4:07 pm
Forum: Flowcode V6
Topic: 24FV32KA301 (ANALOG INPUTS **SOLVED**)
Replies: 1
Views: 2210

Re: 24FV32KA301 (ANALOG INPUTS **SOLVED**)

I was finally able to solve the problem. After lot of struggle, found that the 24FV32KA301.fcdx had few typo errors. Removed the existing file under FCD/PIC16, corrected the typos and put the file back. All inputs started working fine at 12bit resolution. Ben/Leigh : Please refer the attached file a...
by RTJNair
Fri Jan 19, 2018 6:39 pm
Forum: Flowcode V6
Topic: 24FV32KA301 (ANALOG INPUTS **SOLVED**)
Replies: 1
Views: 2210

24FV32KA301 (ANALOG INPUTS **SOLVED**)

Hi Ben/Leigh, Need your help in solving the below problem with analog inputs. I have An1, An3 and An4 enabled at 12bit resolution. The simulation is working but the code when loaded into the PIC works only for An4 the other two are reading ZERO irrespective of whatever input you feed to them. Attach...
by RTJNair
Thu Jun 15, 2017 10:19 am
Forum: Flowcode V6
Topic: PIC24 5V devices with 12-BIT ADC resolution [SOLVED]
Replies: 5
Views: 4773

Re: PIC24 5V devices with 12-BIT ADC resolution

Perfect. Many thanks LeighM.

Now I could get the 12bit resolution.

Appreciate the quick solution.

RTJ Nair
by RTJNair
Thu Jun 15, 2017 9:12 am
Forum: Flowcode V6
Topic: PIC24 5V devices with 12-BIT ADC resolution [SOLVED]
Replies: 5
Views: 4773

Re: PIC24 5V devices with 12-BIT ADC resolution

Thanks LeighM.

Tried but the compiler gives an error and didn't switch to 12BITs,

TESTPIC24working.c:3147: error: 'AD1CON1BITS' has no member named 'MODE12'

I checked the datasheet and it doesn't mention "MODE12" bits for PIC24FV32KA301.

RTJ Nair
by RTJNair
Thu Jun 15, 2017 7:38 am
Forum: Flowcode V6
Topic: PIC24 5V devices with 12-BIT ADC resolution [SOLVED]
Replies: 5
Views: 4773

PIC24 5V devices with 12-BIT ADC resolution [SOLVED]

Hi all, Noticed that the ADC resolution for PIC24FV32KA301 (5V, 12BIT ADC) is reading only 10bits (1023) instead of 12bits (4095). Tried the available two option for VREF ie; VDD as well as V+Ref tied to VDD but both didn't yield expected results. Maybe some thing has to be modified in the 16BIT ADC...
by RTJNair
Fri May 26, 2017 4:09 am
Forum: Flowcode V6
Topic: PIC24FV32KA301 internal clock
Replies: 2
Views: 4327

Re: PIC24FV32KA301 internal clock

Many thanks Benj for your quick reply.

Now, I could get it working and seems stable at 8MHz without PLL :D . I could also get a 0.96" SSD1306 I2C OLED working with it flawlessly at 400 Kbaud and with "no" stop delay.

RTJ Nair
by RTJNair
Sun May 21, 2017 8:51 am
Forum: Flowcode V6
Topic: PIC24FV32KA301 internal clock
Replies: 2
Views: 4327

PIC24FV32KA301 internal clock

Hi Benj, Really need your help in setting up the internal clock for PIC24FV32KA301. Flowcode works perfect in simulation mode. Internal clock required: 8MHz Understand we need to put a "c" code at the beginning of main. I tried , OSCCONbits.COSC=0b000; and also, OSCCON=0b000; Both didn't work. Is th...
by RTJNair
Mon Apr 20, 2015 7:15 pm
Forum: Feature requests
Topic: MODBUS (slave)
Replies: 19
Views: 13207

Re: MODBUS (slave)

Dear Matrix team,

Yes, the Modbus RTU slave component will be a great addition. Kindly consider including this as one of the priorities.

Thanks in advance.
by RTJNair
Tue Nov 11, 2014 5:07 pm
Forum: Flowcode V6
Topic: Modbus
Replies: 38
Views: 29386

Re: Modbus

Hello Zadah, Thanks for the work you have done to develop the modbus slave. I am quite interested since I am doing a project that will need one like this. I need to capture few input registers starting from 30100 to 30120 on an RS485 interface. I will have to build this from scratch. The flowcode pr...