Author Topic: MC23016 of Microchip  (Read 7310 times)

Offline Jacobo

  • Newbie
  • *
  • Posts: 9
    • View Profile
MC23016 of Microchip
« on: January 05, 2009, 03:16:57 AM »
Hi Mark!

I'm using the M52233DEMO with uTaskerv1.3.0_SP6.

I need to connect a port expander for IIC MC23016 Microchip.
In what Files you recommend placing the code.

Thanks

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3234
    • View Profile
    • uTasker
Re: MC23016 of Microchip
« Reply #1 on: January 05, 2009, 10:16:40 AM »
Hi Jacobo

There is some I2C demo code in application.c and a guide to using it at http://www.utasker.com/docs/uTasker/uTaskerIIC_002.PDF

As to where it is best placed in your own project depends on your preference. If you are only using the interface for output commands can be easily sent from anywhere (open the port in any task and use its 'global' handle from any place). If you are also reading data in, it may be better to concentrate control in a single task since a task is defined for reception. To be completely modular you could even add a new task which is purely used to control the interface.

Regards

Mark