Search found 18 matches

by davidkilshaw
Tue Jan 08, 2019 2:12 pm
Forum: Flowcode V8
Topic: 16f18325 clock selection
Replies: 1
Views: 1437

16f18325 clock selection

A few weeks ago i had discussions on here with Benj regarding I2c and the outcome was the pins had not been configured correctly for the 16f18325 On a different topic but the same IC I have set the clock source under the configure window of project options to "HFINTOSC 32MHZ" reading the datasheet f...
by davidkilshaw
Thu Dec 20, 2018 2:52 pm
Forum: Flowcode V8
Topic: Flowcode8 i2c slave functionality
Replies: 1
Views: 1396

Flowcode8 i2c slave functionality

When using the i2C slave macro I am unsure if the following occurs

When the pic is set to an address and that address is sent via the master device does the pic respond with an ACK after it has received the address?

Thanks
by davidkilshaw
Fri Nov 16, 2018 6:43 pm
Forum: Flowcode V8
Topic: i2C slave problems
Replies: 15
Views: 6104

Re: i2C slave problems

great thanks for the update
by davidkilshaw
Thu Nov 15, 2018 11:16 am
Forum: Flowcode V8
Topic: i2C slave problems
Replies: 15
Views: 6104

Re: i2C slave problems

Could you confirm what the clock settings insoftware oscillator mode mean specifically i think i understand HFintosc 32Mhz is an internal osc at 32Mhz but does it tie up any pins ? Extosc with 4* PLL i assume this requires a crystal connected to pins so will use up some of the pins SOSC 32.768kHz no...
by davidkilshaw
Wed Nov 14, 2018 3:17 pm
Forum: Flowcode V8
Topic: i2C slave problems
Replies: 15
Views: 6104

Re: i2C slave problems

the code for the read to write as mentioned in the first email is here
testing port a4 to led port c2.fcfx
(8.98 KiB) Downloaded 246 times
by davidkilshaw
Wed Nov 14, 2018 3:16 pm
Forum: Flowcode V8
Topic: i2C slave problems
Replies: 15
Views: 6104

Re: i2C slave problems

benj Here is the code that i used for the turning on / off each port. I initially did it to all ports at the same time (so had 12 output high macros macros and then 12 output low macros all set to different ports. The version uploaded is only doing one port as i was trying to see if there was cross ...
by davidkilshaw
Wed Nov 14, 2018 3:12 pm
Forum: Flowcode V8
Topic: i2C slave problems
Replies: 15
Views: 6104

Re: i2C slave problems

further investigation to whether physical ports on the micro can be programmed So far i have tried to pulse on / off each port. I can make ports A0,A1,A2,A3 (unknown as there is a pull up on my board) , C0, C1, C2,C3,C4 work correctly Ports A4,A5,C5 do not work. And as stated i am usnsure about port...
by davidkilshaw
Wed Nov 14, 2018 1:43 pm
Forum: Flowcode V8
Topic: i2C slave problems
Replies: 15
Views: 6104

Re: i2C slave problems

Thanks for this. this has solved the I2C issue but i have found another issue which i wonder is if it is a mapping issue also Reading port A4 into the micro and sending its digital level (0 or 1) to port C2 does not work Reading port C0 into the micro and sending its digital level (0 or 1) to port C...
by davidkilshaw
Fri Nov 09, 2018 11:15 am
Forum: Flowcode V8
Topic: i2C slave problems
Replies: 15
Views: 6104

Re: i2C slave problems

morning Benj

is there any update on this fix ?

regards

Dave Kilshaw
by davidkilshaw
Thu Nov 08, 2018 12:56 pm
Forum: Flowcode V8
Topic: i2C slave problems
Replies: 15
Views: 6104

Re: i2C slave problems

Further testing on this project would indicate the the I2C interface with the 16F18325 isnt working properly Setting the pic as a slave a master device sends a request to send data to the address of the micro i see the pulses on a scope as expected but i get no ack from the slave and by master repor...
by davidkilshaw
Thu Nov 08, 2018 10:50 am
Forum: Freelance Embedded Engineers
Topic: Can anyone help regard programming a PIC16F18325
Replies: 3
Views: 8035

Re: Can anyone help regard programming a PIC16F18325

I have looked at the wiki you suggest and have taken the code. To describe the software On boot the micro needs to do 3 things Set 2 ports 1 high and 1 low ( done and working) read the state of a digital input to be high or low. (if high it sets the i2C address to be A and if low sets the I2C addres...
by davidkilshaw
Thu Nov 08, 2018 10:38 am
Forum: Flowcode V8
Topic: i2C slave problems
Replies: 15
Views: 6104

Re: i2C slave problems

The delays have been removed on previous versions The LED has been set to off and then turned on if a valid byte is found but this also failed The reason for the delays was purely to give visual indication (by speed of flashing) where the program was in execution If this is a Bug in flowcode is ther...
by davidkilshaw
Wed Nov 07, 2018 4:47 pm
Forum: Flowcode V8
Topic: i2C slave problems
Replies: 15
Views: 6104

i2C slave problems

I have a recurring issue that i cannot solve. I am writing a piece of code to convert a byte of data received on i2c to set the mark space ratio of a PWM. This is simple enough and i have written and proven all the code appart from the I2C slave part. I have taken snippets of code from other project...
by davidkilshaw
Mon Nov 05, 2018 6:07 pm
Forum: Freelance Embedded Engineers
Topic: Can anyone help regard programming a PIC16F18325
Replies: 3
Views: 8035

Can anyone help regard programming a PIC16F18325

I have a requirement to take 2 bytes of information (a number from 0 - 1023) over I2c and provide a PWM waveform with a mark to space ratio of the number received. I have managed to get the PWM to work in hardware to provide a PWM that is variable from a fixed register within the PIC but cannot get ...
by davidkilshaw
Mon Oct 22, 2018 10:46 am
Forum: Flowcode V8
Topic: Flowcode 8 I2C slave Macro
Replies: 2
Views: 2177

Re: Flowcode 8 I2C slave Macro

see flowcode project attached
thanks
by davidkilshaw
Sun Oct 21, 2018 6:36 pm
Forum: Flowcode V8
Topic: Flowcode 8 I2C slave Macro
Replies: 2
Views: 2177

Flowcode 8 I2C slave Macro

I am using a 16F18325 Pic to try and create a PWM waveform based on an I2C number received. I have no issue with driving the PWM but am struggling getting the I2c slave macro to function. Everything looks fine in emulation in flowcode but the pic just fails to see any signals on the I2C port. To pro...
by davidkilshaw
Thu Apr 09, 2015 9:03 pm
Forum: Freelance Embedded Engineers
Topic: Rj45 UDP and USB interface comms required
Replies: 0
Views: 9160

Rj45 UDP and USB interface comms required

I am looking for an engineer to write some code for an application where when written there will be a micro which will have a number of registers set to specific variables within a PIC micro. The RJ45 connection will be able to communicate via a fixed IP address and set and read these registers The ...
by davidkilshaw
Thu Dec 20, 2012 12:36 pm
Forum: Freelance Embedded Engineers
Topic: usb engineer required
Replies: 1
Views: 9161

usb engineer required

I have an application where i need to shutdown a PC running windows server 2008 R2 under certain conditions I will be able to provide a signal i.e. a logic level change signal this then needs to be converterted into a communication that can be interpreted by windows to kick off a controlled shut dow...