This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HalCodeGen for Hercules RM48L952ZWT: ADC-Trig

Other Parts Discussed in Thread: HALCOGEN

Where is AD1TRG in the PINMUX?

The EE on my project wrote:

1.3.33. Write 0x01010101 to PINMMR30 at 0xFFFFEB88. This enables ADC_TRG1 (not used), RESERVED (not used), RESERVED (not used), and  RESERVED (not used).

All the other items in his 1.3 section I enable/select in the PINMUX tag of HalCodeGen. From my understanding, his ADC_TRG1 should be something like AD1TRG given other ADC signals, such as AD1EVT. I just do not see it.

Where is it? If you can give me the first column designation, such as N19 for AD1EVT that would be helpful. If somewhere else, then please elaborate.

  • Hello Sarah,

      First of all what EE are you referring to?

      Normally you would use AD1EVT as an input pin to trigger the ADC to take your selected ADC channel input for conversion. You don't really need to configure the PINMUX. Even if you want to use the AD1EVT as a GPIO you still don't really need to configure PINMUX since AD1EVT is by default the default signal on N19. 

      Please see below image where you can click the checkbox next to the AD1EVT the last checkbox on the third column. Once you click it then go the row where N19 is shown you will see that AD1EVT becomes the selected signal. However, I don't think you are looking for use AD1EVT as a GPIO pin. Please confirm.

    The MibADC1 module can take from various trigger sources among which the AD1EVT is one of them. To select different trigger source you can go to the ADC1->ADC1 Group Event sub tab in HalCoGen. These information are also described in the device datasheet in section 7.2.2.

  • The one that designed the board. The project calls for updating an existing board, which was designed almost 2 decades ago, to one which has a newer CPU. The original one used an Intel 386EX CPU, whereas the new one uses the TI Hercules RM48L952ZWT. I am the electrical engineer on the project. I wrote the original firmware and am tasked with the port.

    The EE gave me the interface specification, which I have to translate into HAL Code Generator clicks for the creation of the boot loader. I am starting to get a handle on things, so things are going a bit easier.

    HAL Code Generator does not talk registers, it talks clicks, balls, and other graphical items. I am trying to configure/initialize the CPU. Does that answer your question?

    I do not know what will trigger the ADC. Here are the paragraphs that talk about ADC with respect to the PINMUX / IOMMR register area.

    1.3.12. Write 0x02010201 to PINMMR10 at 0xFFFFEB38. This enables AD1EVT (not used), EMIF_DATA[3] (netname D3), EMIF_nCS[0] (net name SDRAM_nCS), and EMIF_DATA[2](netname D2).
    1.3.33. Write 0x01010101 to PINMMR30 at 0xFFFFEB88. This enables ADC_TRG1 (not used), RESERVED (not used), RESERVED (not used), and RESERVED (not used).

    Does that mean that ADC_TRG1 and AD1EVT are one and the same? You have the register addresses and know the CPU better than me.
  • Okay, I am looking at the ADC1 tab and see the dropdown list for "ADCx Event Group Trigger Source". Your comment makes sense. The default trigger source is EVENT, however can be several other pin options. ADC_TRG1 is the trigger source, which can be one of several options. Okay, I will leave the default.
  • Hi Sarah,
    If your question is answered, can you please click the 'Verify Answer' to close the thread? Thanks.
  • Thanks for the explanation on your migration to Hercules. As you have already found out, the AD1EVT is just one of the several trigger sources to the ADC module.