Project

General

Profile

Actions

Atmel SAM Approach » History » Revision 5

« Previous | Revision 5/10 (diff) | Next »
laforge, 05/04/2018 10:42 PM
SAM4S-XPRO


Atmel SAM Approach

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.

Overview

  • the SAM controls the LIU via SPI
  • the SAM attaches to the host via USB
  • The SAM SSC Peripheral is used to interface to the receive + transmit bit-streams of the LIU
  • The SAM3 TC Peripheral is used for Rx frame alignment

Serializing/Deserializing

  • SSC can receive/transmit synchronous serial bit streams with external or internal clock
  • SSC supports DMA operation between the (de)serializer and RAM using PDC (peripheral DMA controller)
  • SSC can run either
    • continously (frame alignment done in software [possibly using bit-banding], as no octet alignment of frames), or
    • triggered by RF input, which we supply from SSC (see below) with hardware-assisted frame alignment

Frame Alignment using TC (Timer/Counter)

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.

  • received clock is fed into TCLKx
  • internal 16-bit counter is set to count up to 256 (one frame duration)
  • TC is operated in WAVEFORM mode
  • TIOA or TIOB are operated as output routed to the SSC RF (receive frame) input
  • Ra/Rb/Rc registers are used to shift the rising and falling edge of the TIOA/TIOB signal within the 256bit frame

Transmit side

The transmit side is rather simple:
  • use either recovered Rx clock or locally-generated clock (from GPS-DO)
  • serialize the bits with no particular alignment requirements, as it's entirely up to the receiver to align to the frames we send

Eval boards

We need access to PA16 (TK), PA17 (TD), PA18 (RD), PA19 (RK).

  • SAM4S-XPRO
    • exposes SSC I/O (stated above) signals on external headers
    • contains built-in JTAG/SWD debugger for development + flashing
    • exposes SPI on external header (control of osmo-e1-xcvr)
Files (4)
Atmel-11100-32-bit Cortex-M4-Microcontroller-SAM4S_Datasheet.pdf View Atmel-11100-32-bit Cortex-M4-Microcontroller-SAM4S_Datasheet.pdf 5.46 MB SAM4S manual laforge, 05/04/2018 09:58 PM
Atmel-6500-32-bit-Cortex-M3-Microcontroller-SAM3S4-SAM3S2-SAM3S1_Datasheet.pdf View Atmel-6500-32-bit-Cortex-M3-Microcontroller-SAM3S4-SAM3S2-SAM3S1_Datasheet.pdf 4.67 MB SAM3S manual laforge, 05/04/2018 09:58 PM
e1-xcvr-xpro.jpg View e1-xcvr-xpro.jpg 2.48 MB osmo-e1-xcvr hooked up to a SAM4S-XPRO board laforge, 01/13/2020 11:24 AM
usb-e1-interface.jpg View usb-e1-interface.jpg 3.33 MB assembled usb-e1-interface laforge, 01/13/2020 11:26 AM

Updated by laforge almost 6 years ago · 5 revisions

Add picture from clipboard (Maximum size: 48.8 MB)