Ron
I would be interested to know which CCS library you used. Either the bit
bash library or functions written for the on board SPI??
How long have you been useing CCS and how have you found it??
Thanks...Jason
{Quote hidden}>I put a 16C63 on a board and had no problems. Wrote the code
>with CCS C Compiler. Look at
http://www.emicros.com for the
>description.
>
>Keith Howell wrote:
>>
>> In reply to John Bellini's post,
>> Being a master is relatively easy, and done by bit-banging in software.
>> You only need two open-collector outputs for this.
>> In a multimaster environment, the SSP hardware is useful because you can
>> monitor the Start (S) bit to ensure you don't start using the bus
>> if a message has already started. This gives you collision avoidance.
>>
>> Being a slave requires hardware assistance as you don't wish to sit
>> around watching bus signals all the time. The SSP provides this.
>> You set this up to interrupt the CPU every time a complete byte has
>> arrived or departed from the SSP buffer. It is up to your software
>> to handle them.
>>
>> > I know that the ACK is done automatically,
>> > what about the switching of inputs and outputs when
>> > a Master is reading instead of transmitting?
>> > Do the inputs switch to outputs in hardware Yes, the SSP knows the data
transfer direction.
{Quote hidden}>> It only bothers the CPU after the transfer is complete.
>>
>> > If anyone has a function/subroutine which performs I2C on a PIC,
>> > that would be useful in understanding.
>>
>> I can't give you the full source but I can tell you the things
>> that tripped me up and thus you can avoid.
>
>--
>
>From: Ron Russ
> EMICROS - Embedded Micro Software
> (
http://www.emicros.com)
> CANPORT - Lowest cost PC to Controller Area Network Adapter
> (
http://www.emicros.com/canport.htm)
> CANTEC11 - 68HC11 SBC with Controller Area Network
> (
http://www.emicros.com/cantec11.htm)
>
>