µTasker Forum

µTasker Forum => NXPTM M522XX, KINETIS and i.MX RT => Topic started by: Jacobo on January 05, 2009, 03:16:57 AM

Title: MC23016 of Microchip
Post by: Jacobo 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
Title: Re: MC23016 of Microchip
Post by: mark 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