Make the hardware I2C port available same as HSERIN / HSEROUT.
Make the hardware I2C port available same as HSERIN / HSEROUT.
We are in the PBP wish list section...
garryp4 want to have new statements (HI2CREAD/WRITE) that use the Hardware MSSP module instead of using I2CREAD/WRITE. Something like SERIN/HSERIN PWM/HPWM
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I was a bit dissapointed to find out that the I2C speed with the I2CREAD/WRITE commands are much slower that what the offered hardware is capable of. To get to this speed requires the use of writing some ASM code, which why we use PBP in the first place. I could really use this speed. The PIC supports it but PBP don't. However, I have found what PBP does support to be easy and work the first time every time.
Please please please implement hardware I2C for devices that support it! The I2CWrtite I'm using is sucking up TONS of code space, is slow as death, and is making me nuts!
Andy
.... oops sorry....
Which device you need to talk to?
Last edited by mister_e; - 9th April 2008 at 16:22.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
What do you think of "@ hi2cwrite / hi2cread" type command?
Is that even possible? Can't pass many variables that way. They'd have to be preset. You'd have to have a number of different versions to handle the different 'item' possibilities...
Unless...you hijacked the original i2cread/i2cwrite commands with a flag set somewhere...hmmmmm
In theory it's possible... on the down side, i'm not sure Microchip always use the same naming convention between all their PICs... not surprised at all if not. But yes ... possible.
Some "HiJack" method? Possible too... 'till now the user will need to manually modify the PBP library![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
HI2CREAD and HI2CWRITE? Why stop there? What about ...
SPI Master
SPI Slave
I2C Master
I2C Multi-Master
I2C Slave
If you want to support the SSP modules, you should support the Whole Module.
And both kinds ... SSP/MSSP.
<br>
DT
Bookmarks