Atmel SAM Approach » History » Version 1
laforge, 05/04/2018 09:54 PM
1 | 1 | laforge | h1. Atmel SAM Approach |
---|---|---|---|
2 | |||
3 | This page describes a proposed approach of implementing the E1 adapter using [[osmo-e1-xcvr]] and an Atmel SAMx microcontroller, suhc as a SAM3S or SAM4S. |
||
4 | |||
5 | h2. Overview |
||
6 | |||
7 | * the SAM controls the LIU via SPI |
||
8 | * the SAM attaches to the host via USB |
||
9 | * The SAM *SSC Peripheral* is used to interface to the receive + transmit bit-streams of the LIU |
||
10 | * The SAM3 *TC Peripheral* is used for Rx frame alignment |
||
11 | |||
12 | h2. Serializing/Deserializing |
||
13 | |||
14 | * SSC can receive/transmit synchronous serial bit streams with external or internal clock |
||
15 | * SSC supports DMA operation between the (de)serializer and RAM using PDC (peripheral DMA controller) |
||
16 | * SSC can run either |
||
17 | ** continously (frame alignment done in software [possibly using bit-banding], as no octet alignment of frames), or |
||
18 | ** triggered by RF input, which we supply from SSC (see below) with hardware-assisted frame alignment |
||
19 | |||
20 | h2. Frame Alignment using TC (Timer/Counter) |
||
21 | |||
22 | The idea is to use one of the TC units to perform hardware-assisted frame alignment and this way prevent us from having to do tons of bit-shifting in software in order to align the start of the 256 bit E1 frame with an octet boundary. |
||
23 | |||
24 | * received clock is fed into TCLKx |
||
25 | * internal 16-bit counter is set to count up to 256 (one frame duration) |
||
26 | * TC is operated in WAVEFORM mode |
||
27 | * TIOA or TIOB are operated as output routed to the SSC RF (receive frame) input |
||
28 | * Ra/Rb/Rc registers are used to shift the rising and falling edge of the TIOA/TIOB signal within the 256bit frame |