Search found 135 matches

by jay_dee
Thu May 02, 2024 10:04 pm
Forum: Projects - Embedded
Topic: PIC Random Nunber
Replies: 6
Views: 50

Re: PIC Random Nunber

Fantastic, thanks. I have the standard random function working well, I'll try the srand C code tomorrow. :)
by jay_dee
Thu May 02, 2024 8:06 pm
Forum: Projects - Embedded
Topic: PIC Random Nunber
Replies: 6
Views: 50

Re: PIC Random Nunber

Ah Thanks Guys.
argh flipping heck..yeah found it now! Thanks Martin. :)
I did several searches on the current FC forum and did not find anything, FC is great on some of its features these days but sometimes even the simplest things are darn hard to find.
by jay_dee
Thu May 02, 2024 7:27 pm
Forum: Projects - Embedded
Topic: PIC Random Nunber
Replies: 6
Views: 50

PIC Random Nunber

Hi, this one has me stumped.
Is there a way to create a psudo random number, between limits in flowcode or via a C call?
I wish to create a delay with a random length between 0.5 and 4 seconds.
J.
Im using a PIC 18F 2585
by jay_dee
Fri Apr 26, 2024 5:11 pm
Forum: Projects - Embedded
Topic: PICO GP IO Internal weak Pull UP Down
Replies: 2
Views: 55

Re: PICO GP IO Internal weak Pull UP Down

Hi,
Thanks, yep that works great.
Also found the pull down and pull disable (leave pin floating) commands.
test program attached for anyone else wanting to play along.
Also checked and the pull up is weak at around ~50K but works for my needs
IO_Pull_UPs_Enable.fcfx
(12.37 KiB) Downloaded 6 times
J.
by jay_dee
Fri Apr 26, 2024 2:10 pm
Forum: Projects - Embedded
Topic: PICO GP IO Internal weak Pull UP Down
Replies: 2
Views: 55

PICO GP IO Internal weak Pull UP Down

Hi, Playing with the PICO and its working well. If I want a single pin (GP5) to be a input and set a weak pull up or pul down, how would I do this? Does it need a line of C code? I have a Switch component setup, set for Active Low. So I assume the Pin will be correctly set as an input. Thanks, J.
by jay_dee
Sat Feb 10, 2024 3:16 pm
Forum: Bug Reports
Topic: Pi PICO No Hardware I2C on Channel 1 or Channel 2
Replies: 14
Views: 588

Re: Pi PICO No Hardware I2C on Channel 1 or Channel 2

Hi Guys, So if I have a User Macro that I used to read a sensor with PICs My process for PIC was Initialise Macro Start, Tranmit device Address, Transmit register address, transmit Data_Byte, stop. For PICO, ESP32 etc I use the Transaction_Initialise Macro then should I just do three transaction_wri...
by jay_dee
Sat Feb 10, 2024 12:06 pm
Forum: Bug Reports
Topic: Pi PICO No Hardware I2C on Channel 1 or Channel 2
Replies: 14
Views: 588

Re: Pi PICO No Hardware I2C on Channel 1 or Channel 2

Chipfryer. Many thanks for confirming what I get on my scope too. J. I'm always cautious it is something dumb on my end!
by jay_dee
Sat Feb 10, 2024 9:36 am
Forum: Bug Reports
Topic: Pi PICO No Hardware I2C on Channel 1 or Channel 2
Replies: 14
Views: 588

Re: Pi PICO No Hardware I2C on Channel 1 or Channel 2

Thanks Chipfryer, Luckily I have a Agilent scope on the job and I get a lovely trace if I set the output to software. Just change the single setting to one of the hardware I2C channels and I get nothing....that is just a bit odd for me. I have this setup on a stand alone PICO with only a status LED ...
by jay_dee
Fri Feb 09, 2024 5:25 pm
Forum: Bug Reports
Topic: Pi PICO No Hardware I2C on Channel 1 or Channel 2
Replies: 14
Views: 588

Re: Pi PICO No Hardware I2C on Channel 1 or Channel 2

Thanks Leigh...not sure what i have stuffed up then. :) an known working example would be great.
by jay_dee
Fri Feb 09, 2024 4:53 pm
Forum: Bug Reports
Topic: Pi PICO No Hardware I2C on Channel 1 or Channel 2
Replies: 14
Views: 588

Pi PICO No Hardware I2C on Channel 1 or Channel 2

Hi FC Team, Working through PICO functions and cant raise any responce from the hardware IC2 channels. Very simple test routine attached. On a bare and new PICO. Only has LED on GP4 and Pull up resistors on SDA & SCK. using I2C master component (sims OK) Software - Get a I2C signal as expected. Chan...