
MenuIn your "working" example 2 you're actively driving the pins high and low.
I2C is an open-drain/collector bus where the high level speed is determined in part by the pullup values.
To reduce the...
what pic chip ?
how is pc9685 wired up [sketch]
i2c pins should not be set as outputs
Hello.
Trying to interact with PCA9685. No luck so far. Here's the code:
#config
CONFIG RETEN = OFF
CONFIG INTOSCSEL = HIGH
CONFIG SOSCSEL = DIG
CONFIG XINST = OFF ;Enabled
in reality accuracy is not always critically important, 1% or larger errors still work well in 90% of cases for tty serial transmission.
8bit generator results can be equally accurate anyway.
if...
Thanks a lot Richard.
All your settings work like a charm :wink:
Still a question: why would one choose the 8 bit baudrate generator - seems less accurate, no?
its probably better to say
there are two baudrate clock source dividers brgh=0 ; fosc/64 and brgh=1 ; fosc/16 and
and you have the choice of 8 or 16 bit baud rate generators, so 4 options...
when you get a result like
DEFINE HSER_SPBRG 832 you realize something is very wrong since an 8 bit register can not accept that value ever
you have enabled the 16 bit baud rate generator in...
Hi All,
I had an example from Richard lately where he configured my 16F18446 HW serial's port.
I didn't pay that much attention to it...
Now that I'm looking closer on "how he did it", I...

Re: I2CWRITE/I2CREAD access hardware in the different way? (PCA9685 issues)
Chip is 18F45K80. I changed pull-up values to 5.1K, not much difference in shape of signals, but at least now it works.
CuriousOne Today, 05:57So in case of I2CWRITE, pins should be configured as input?