Resources used by QMatrix acquisition method libraries for 32 Bit device

Devices supported by 32 Bit Qmatrix Acquisition libraries are:

The following additional resources are used by the QMatrix acquisition method libraries.

  1. 1.

    Four Analog Comparator

  2. 2.

    One internal Timer ( Timer0 with channel0 )

  3. 3.

    Two Analog Comparator Interface ACIFA0/1.

  4. 4.

    Event System Channel 16 is used.

The device has two Analog comparator interfaces ACIFA0 and ACIFA1 .Each interface provides the flexibility to configure two analog comparators ACA and ACB comparators..UC3C has Four Comparators (AC0A , AC1A , AC0B , AC1B), So there are 10 Possible Yb lines as given in table below.

User has flexibility to configure maximum 8 Yb lines for maximum 64 channel libraries.

Table 1. The states of the Yblines which can be configured.

Yb LInes of the Four Analog Comparators

Port A Pins

AC0AN0(AC0A Comparator)

PA22

AC0AN1(AC0A Comparator)

PA27

AC0BP0(AC0A Comparator)

PA23

AC1AN0(AC1A Comparator)

PA13

AC1AN1(AC1A Comparator)

PA07

AC1BP0(AC1A Comparator)

PA14

AC0BN0(AC0B Comparator)

PA21

AC0BN1(AC0B Comparator)

PA29

AC1BN0(AC1B Comparator)

PA15

AC1BN1(AC1B Comparator)

PA09

These Yb lines are the negative input pins of the analog comparator.

Table 2. The lines which are externally grounded for Proper Qmatrix operation

Positive Input Pins of the Four

Analog Comparators

Port A Pins

AC0AP0(AC0A Comparator)

PA20

AC0BP1(AC0B Comparator)

PA28

AC1AP0(AC1A Comparator)

PA12

AC1BP1(AC1B Comparator)

PA08

If only one comparator is used , then the corresponding pin of that comparator is properly externally grounded.Above table shows the Analog comparator usage and the corresponding lines which needs to be grounded.

The Port pin configurability is provided in the library to select any port for Ya or X lines.The Port for Yb lines is fixed which is PORTA as these lines are inputs of the Analog comparators which are fixed pins of PORTA.

Table 3. Port pin configurability

X,YA,YB,SMP Configurations

Ports on UC3C

PORTA

PORTB

PORTC

PORTD

X

Yes

Yes

Yes

Yes

YA

Yes

Yes

Yes

Yes

YB

Yes (only few pins of PortA can be configured as Yb Lines)

No

No

No

SMP

Yes

Yes

Yes

Yes

The configurability is provided to select X, SMP and YA lines on same port and X, SMP and YB lines on same port.

Number of X ports should be 1 means the X lines should be connected to a single port.

Note:

YA and YB cannot be on the same port.

SMP Pin should be less than equal to the 19th pin of any Port