Menu

USART 2 on 328pb

wn
2017-12-31
2017-12-31
  • wn

    wn - 2017-12-31

    I am attempting to alter a chipdata file so that I can use the second USART on a atmega328pb chip. I have the INC file with all of the addresses/memory mapped I/O. I am not sure where the Rx/Tx port pins are assigned in the chipdata file. I have put in a request to add support for the 328pb and I am certainly willing to be a tester.

     
  • Anobium

    Anobium - 2017-12-31

    Myself and Hugh did look into this chio before Christmas. I was unable to extract all the files we need from the ATMEL studio as this chip was not supported at Studio 6.

    So, Hugh how far did you get?

     
  • wn

    wn - 2017-12-31

    I was able to get the second USART working just now. I am using Atmel Studio 7.0 which appears to have the necessary .INC file. At least that is what I have been referencing as well as an Atmel datasheet prior to the MicroChip format. I am going to send over the 328pb chipdata file that I am using as well as the INC file if it will help someone. It woud be great if it could be validated as well.

     
    • wn

      wn - 2017-12-31

      I am still having a problem with the interrupts I think. I am looking for RXC1 to be true (USART2HasData) and it does not appear to get triggered.

      Here is the mapping from the DAT file in the Interrupts section:

      UsartRX1Ready:USART0_RX,36,RXCIE0,RXC0
      UsartTX1Ready:USART0_UDRE,38,UDRIE0,UDRE0
      UsartTX1Sent:USART0_TX,40,TXCIE0,TXC0
      UsartRX2Ready:USART1_RX,56,RXCIE1,RXC1
      UsartTX2Ready:USART1_UDRE,58,UDRIE1,UDRE1
      UsartTX2Sent:USART1_TX,60,TXCIE1,TXC1

      Thanks!

       

Log in to post a comment.