Trivial use of the CCL...

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just checking:

Can you use the CCL "trivially" just to move a peripheral function to a pin where you couldn't otherwise direct it?

For example, on the ATmega4809, USART0 TXD can be moved to PA4 or PA0 via the PinMux, but it's also available as an input to the CCLs, which can output to PA3, PA6, PC3, PD3, PD6,  PF3, or PF6.  (and the pinmux can also disconnect it from the normal pins.)

 

(oh my: the CCL documentation has changed quite a bit since the version of the datasheet I've been looking at.  It looks like USART1 and USART2 might be similarly redirected.)

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, if you direct TXD to any LUT-IN and set LUT to do nothing, the transmitted data will come out from LUT-OUT as it is.

I processed TXD and generated output for WS2812B.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Moreover, you can direct the output of the CCL to be an asynchronous input of the event system.

 

So you can do

USART -> CCL -> EVSYS -> EVOUT

Therefore, the USART Tx can be redirected to either the CCL or (indirectly) EVSYS outputs. I've measured the propagation delay time of these peripherals once, IIRC it's about 20ns each.