SlideShare a Scribd company logo
1 of 28
Download to read offline
Satellite Optical Payload
Controller and Data processing
Embedded System
By-Priyanka Goswami(12BIC053)
Guided by- Prof. H.K Patel
Mr. Jimit Gadhiya,
(SCPD/SEDA, SAC, ISRO)
Electro-Optical Payload
• Electro optical satellite payload is a special instrument designed and developed
for operating on a satellite deck.
• It carries out the remote sensing of the earth surface which is then used to
generate images for carrying out weather and atmospheric observations and
resource mapping of earth surface and also in interplanetary missions.
• The EO Payload has the following components:
1. Telescope
2. Sensor/Detector Array
3. The analog signals from the pixels of the detector are connected to
electronic processing circuits like pre-amplifiers followed by ADC.
4. The digitised output stream is further processed/formatted and then
transferred to other satellite sub-systems like data transmitters and RF
antennas.
5. Payload commanding and control system (Payload Controller).
Institute of Technology, Nirma University 2
Payload Controller
• A payload controller is designed, developed and incorporated in the instrument
for remote control and monitoring of complex instrument like the EO payload.
• Main task performed by the controller are:
1. Interfacing the payload with the satellite systems like on-board
computer(OBC) telemetry and tele- command system and interfacing it
with the data handling system.
2. Commanding.
3. Power on/off and special power sequence.
4. Enabling and disabling clocks and timing signals, timer. based on/off and
period of operation.
5. Mode selection (calibration, de-contamination, etc)
6. Control of the temperature using heaters.
7. Ensuring that the above tasks are run in a proper schedule.
Institute of Technology, Nirma University 3
Figure.1: Block Diagram of Payload Controller with other sub-systems
Institute of Technology, Nirma University 4
Payload Controller
• The payload controller is implemented using a dedicated micro-controller based
system on a single FPGA (SoC) with a defined interfacing logic.
• It consists of a dedicated embedded hardware which includes:
1. MIL1553 controller
2. Microcontroller like 8051
3. GPIO ports
4. Timer
5. APB3 Bus
6. Memory blocks
• Software which includes the initialisation program, scheduler and application
programs and will run on the embedded hardware.
• The embedded hardware is developed using IP Cores from the Microsemi
Library in VHDL in LiberoIDE for radiation hardened device like RTAX2000.
• The System Initialization, Scheduler and Application program is developed in
Embedded C in Keil uVision 5 software.
• The simulation of the complete project is done using ModelSIM.
Institute of Technology, Nirma University 5
Embedded Hardware in SoC
Figure.2: Block Diagram of Embedded Hardware developed in LiberoIDE
Institute of Technology, Nirma University 6
• In-built IP Core available in the Microsemi library.
• 8-bit embedded microcontroller having similar functionalities like the
Intel 8051 or Atmel AT89c51.
• It performs the task of initialising the 1553BRM IP Core internal
registers, CoreTimer, various Interrupts and running the scheduler
• Uses the Harvard architecture (separate memory spaces for code and
data).
Core8051s
Figure.3 : Core8051s I/O PortsInstitute of Technology, Nirma University 7
Core8051s Memory
1. Program memory (PROM) - Core8051s can address up to 64K (0x0000 to 0xFFFF) of
program memory. It is accessed by the core whenever the MEMPSRD signal goes high
and the op-code located at the address determined by MEMADDR is fetched and sent
through the input port MEMDATAI.
Figure.4: Core8051s reading Op-Code from Program Memory
2. Internal Memory - The Core8051s has an internal memory of 256x8 bytes that has
been divided into two parts: 1). Add. 0x80 to 0xFF are reserved for the SFRs and 2).
Add. 0x00 to 0x7F is reserved for internal RAM.
The SFRs are accessed through direct addressing. Since the SFRs of Core8051s and
Intel 8051 are different a separate library file was created in Keil for utilising the
various SFRs.
Institute of Technology, Nirma University 8
Core8051s Memory
3. External Data Memory: The Core8051s can address external data memory of
maximum 64K (0x0000 to 0xFFFF). For the payload controller the External
data memory has been synthesised within the FPGA using a Two Port RAM IP
core which is available in the Microsemi Core Library.
Table.1: Memory Mapping of External Data Memory
Institute of Technology, Nirma University 9
MIL-STD-1553 Protocol & 1553BRM IP Core
• MIL-STD-1553 Protocol was first defined by the United States Department of
Defense as a U.S. Air Force standard in 1973.
• It has 3 types of terminal : Bus Controller (BC), Remote Terminal (RT) and Bus
Monitor (BM).
• The words are of following types (as used in project):
1. Command Word
2. Data Word
• Each word is transmitted in Manchester encoded form. A packet will be made of
3-bit sync pulse followed by the 16-bit word and 1 bit for odd parity.
Institute of Technology, Nirma University 10
• For example: Command word: (0x0822) 16 = (0000100000100010)2. The
transmitted command word after being converted to Manchester encoded form
is:
Figure.4: Waveform showing Manchester encoding of Command and 2 Data words
• The IP Core (developed in VHDL) performs the function of the MIL1553 controller
and is operated in RT mode with 24MHz clock.
• It receives command and data words from the On Board Computer (OBC) through
the MIL-STD-1553 bus in Manchester encoded form.
• The Core8051s is used to initialise the control registers of the MIL1553 IP Core to
set its mode of function, internal parameters, descriptor blocks and enable the
interrupts. Institute of Technology, Nirma University 11
• The ‘Sub address Accessed’ Interrupt of the 1553BRM IP Core is enabled through
the Interrupt Mask register by setting the bit ‘1’.
• INTOUTM (mapped to a input port bit of Core8051s) goes high when a new
message is received and remains so till acknowledged (INTACKM given high to low
pulse).
Table.2: 1553BRM IP Core Internal Registers for RT mode of operation
Figure.5: Simulation of 1553BRM IP Core Interrupt
• 8051 accesses the internal registers of 1553BRM through the following external
memory addresses:
Institute of Technology, Nirma University 12
1553BRM IP Core
• Descriptor block for RT Mode Operation : A block of 512 consecutive words is
reserved in the memory for storing the sub addresses and the descriptor table.
The following information is store:
1. Control Word - It is a 16-bit word used by the core to process the message, details
about the transaction and is initialised by the CPU .
2. Data Pointer A or B- It contains the 16 bit starting address where the message
received by the core is stored and can be later retrieved.
Figure.6: Simulation of 1553BRM IP Core receiving Data Words and storing in the backend memory
Institute of Technology, Nirma University 13
Core Timer
• Decrementing counter based timer IP core available in the Microsemi library.
• Used for providing periodic ticks to the Core8051s required for execution of the
scheduler.
• Required as the Core8051s does not have an internal timer or counter.
• It is an APB slave and hence is interfaced through the CoreAPB3 to the 8051s
(which is an APB master).
• The timer registers are initialised by the 8051s by writing to the corresponding
addresses of the external memory (reserved by APB3).
• The timer is being operated in the continuous mode.
Table.3: Memory Map for APB3-Core Timer Interface
Institute of Technology, Nirma University 14
• The TIMINT pin of the CoreTimer is connected to the INT1 pin of 8051s. When the
decrementing counter becomes zero an interrupt is generated and in the interrupt
service routine Timer interrupt pin is cleared for the next cycle.
• For generating timer ticks at 0.25ms time interval:
The PCLK runs at a frequency of 24MHZ = 0.041667us
The Pre-scale value = (64)10
Hence counter will decrement at timer interval = 0.041667us x 128 = 5.33us.
To get tick interval at 0.25ms = 250us:
250us/5.33us = (46)10 = (2E) 16
Figure.7: Simulation of CoreTimer for generating 0.25ms ticks
Institute of Technology, Nirma University 15
AMBA Bus & CoreAPB3
• The Advanced Microcontroller Bus Architecture (AMBA) was first introduced in
1996
• It is widely used interconnection standard for high performance embedded
processors which can be implemented in System on Chip (SoC) design.
• The CoreAPB3 is a bus component that provides AMBA 3 Advanced Peripheral
Bus fabric for interconnecting an APB master and up to 16 APB slaves.
• The APB bus is used in the project for interfacing the Core8051s, which is an
embedded processor and a APB master to the CoreTimer which a APB slave .
• The APB3 bus reserves the top 4K of the external memory for the interfacing of
the slave devices with the master.
• The APB3 interfaces the first peripheral from the address 0xF000 onwards with
offsets of 0x04, 0x08, 0x0C etc.
Institute of Technology, Nirma University 16
Figure.8: Simulation of CoreAPB3 transaction with Core8051s and CoreTimer
• When the Core8051s writes an 8-bit data in the memory address 0xF000, the
address (through PADDR port) and the 8-bit data (through PWDATA port) is sent
to the corresponding ports of the CoreAPB3.
• Also since the data is written on address 0xF000 the Core8051s also sends a
PSELS signal to select the APB3 slave 0 (CoreTimer).
• The data then gets latched to the bus and is sent to the slave and gets written in
the 0x00 addressed internal register of the peripheral.
Institute of Technology, Nirma University 17
Testing of Embedded Hardware
• Tested by adding a Testbench which mimics the On-Board Computer and sends
command and data words in Manchester Encoded form to the Core1553 and
generates the 24Mhz system clock and system reset signals.
Figure.9: Simulation of embedded hardware using TestbenchInstitute of Technology, Nirma University 18
Scheduler
• Scheduler is an application that handles the sharing of the CPU and resources
like I/O ports among different tasks.
• The scheduler has to maintain two types of task queues:
– The Job Queue
– The Ready Queue
• The scheduler will have the following functions:
– Initialise CoreTimer and MIL1553 IP Core
– Start the Timer and also enable the Core8051s INT1 interrupt
– Add task to the Job Queue
– Check the task delay and flag and execute task.
– Decrement the delay counter and update job queue (implemented as ISR when the
CoreTimer generates an interrupt)
– Wait state (interrupted by the scheduler/timer tick).
• For the Payload Controller, three types of scheduler algorithms were designed:
– Co-operative type Scheduler.
– Round-Robin type Scheduler.
– Round-Robin Scheduler with one Interrupt based High Priority Task (Hybrid-
Scheduler).
Institute of Technology, Nirma University 19
Co-Operative Scheduler
• Advantages:
– It is the simplest type of scheduler
algorithm to implement.
– There is no risk of task being
interrupted as the next task in
queue is executed only when the
first task has been executed.
– Program size is 631 bytes.
• Disadvantages:
– All the tasks have to be designed
such that their total execution time
is less than the timer period.
– If a task gets into an endless loop
the other tasks will not get
executed as the timer will reset the
scheduler and a new cycle will task.
Institute of Technology, Nirma University 20
Round-Robin Scheduler
• Advantages:
– It is a deterministic scheduler.
– No task monopolises the CPU for time
more than that set by the timer after
which the task queue is updated.
– Periodic task will always be executed
at the pre-determined time-interval.
• Disadvantages:
– No task can be assigned a higher
priority.
– If no task is to be executed for a
particular period, then the scheduler
goes to wait state.
– Program size is 700 bytes which is
more compared to Co-operative
scheduler.
Institute of Technology, Nirma University 21
Round-Robin Scheduler with High Priority Task
• Advantages:
– Task can be assigned a higher priority.
– It also ensures that there is no loss of data
(which will be coming in real time) .
– Critical tasks will be serviced immediately.
• Disadvantages:
– It is an un-deterministic scheduler as
current task execution will be stopped and
the scheduler can be interrupted at any
point of execution,
– Point of return from the interrupt is hence
scheduler can fail.
– Program size is 763 bytes .
Institute of Technology, Nirma University 22
Simulation Results
Figure:10. Simulation of Co-operative Scheduler
Figure:11. Simulation of Round-Robin Scheduler
Figure:12. Simulation of Round-Robin Scheduler with High Priority Task
Institute of Technology, Nirma University 23
Payload Controller Applications
• In the project two tasks have been developed:
1. Task1 : Receiving and Storing Data Words received from the OBC
Core8051s reads two data words (DW1 and DW2) coming from the 1553BRM IP
Core and stores a copy in the external data memory. It then generates a high to
low pulse bit 2 of output port 5 (which is mapped to INTACKM input pin) to clear
interrupt of 1553BRM IP Core for next data packet. The 16-bit data words will be
stored in two 8 bit words (MSB and LSB).
Figure.13: Simulation of Task 1- Receiving and Storing Data Words
Institute of Technology, Nirma University 24
2. Task 2: Interpreting the data words to determine the type of command to be
executed and implementing the corresponding function by processing them.
– The program first reads the MSB of DW1 and determines the type of command to
be executed (Table.4).
– Depending on command it will process DW2 to generate either on/off pulse on
particular bits of o/p port or send it as a data command in serial form.
Table.4: Command types with corresponding identification parameter
• For example if OBC sends DW1 and DW2 as E1AA and 89F3 respectively then the On
command will be scheduled and when task is executed a pulse will be generated on bit 2
of output port 1.
Institute of Technology, Nirma University 25
Implementation and Testing of Payload
Controller
Figure.16: Simulation of Payload Controller system with multiple on, off and data commands
Institute of Technology, Nirma University 26
Project Outcome
• A System on Chip (SoC/FPGA) based payload controller has been designed and
tested for use in electro-optical payloads like GISAT, Chandrayaan-2 and OCM
satellites.
• The LiberoIDE software was used for designing the embedded hardware and I/O
port mapping. A custom Testbench developed in VHDL was used for testing and
simulation of the system using the ModelSIM software.
• The software was written in Embedded C language and compiled in Keil
uVision5 software .
• Study of the MIL-STD-1553 and AMBA protocol was carried out.
• The project included developing of the controller software, which included
initialization of the 1553BRM IP Core registers and use of CoreTimer.
• A study and development of different Scheduler algorithms was carried out and
the Round-Robin type of scheduler was selected for the payload controller.
• Pulse command and Data Command payload applications were designed and
implemented using the scheduler.
• The whole payload controller system (hardware and software) was tested and
simulated successfully and ready for hardware implementation.
Institute of Technology, Nirma University 27
Thank You
Institute of Technology, Nirma University 28

More Related Content

What's hot

Conical horn antenna with parabolic reflector using cst
Conical horn antenna with parabolic reflector using cstConical horn antenna with parabolic reflector using cst
Conical horn antenna with parabolic reflector using cstAzlin lolin
 
Doordarshan industrial training report
Doordarshan industrial training reportDoordarshan industrial training report
Doordarshan industrial training reportSatyendra Gupta
 
Static Stress Analysis of Connecting Rod Using Finite Element Approach
Static Stress Analysis of Connecting Rod Using Finite Element ApproachStatic Stress Analysis of Connecting Rod Using Finite Element Approach
Static Stress Analysis of Connecting Rod Using Finite Element ApproachIOSR Journals
 
Image characteristics,latent image,film processing.
Image characteristics,latent image,film processing.Image characteristics,latent image,film processing.
Image characteristics,latent image,film processing.DENTALBLOG
 
Side Lobe Level (SLL) Reduction Methods in Antenna
Side Lobe Level (SLL) Reduction Methods in AntennaSide Lobe Level (SLL) Reduction Methods in Antenna
Side Lobe Level (SLL) Reduction Methods in AntennaDarshan Bhatt
 
Wireless local area network antennas - WLAN -antennit
Wireless local area network antennas - WLAN -antennitWireless local area network antennas - WLAN -antennit
Wireless local area network antennas - WLAN -antennitAerial Oy
 
Fractal Antenna
Fractal AntennaFractal Antenna
Fractal AntennaJay Patel
 
Microstrip rectangular patch antenna
Microstrip rectangular  patch antennaMicrostrip rectangular  patch antenna
Microstrip rectangular patch antennacharan -
 
Metamaterial based antenna with application to real life system
Metamaterial based antenna with application to real life systemMetamaterial based antenna with application to real life system
Metamaterial based antenna with application to real life systemKiran Ajetrao
 
Jacobs Recent changes to transmission line design standards and the impact on...
Jacobs Recent changes to transmission line design standards and the impact on...Jacobs Recent changes to transmission line design standards and the impact on...
Jacobs Recent changes to transmission line design standards and the impact on...Engineers Australia
 
Introduction to Vibration Qualification Testing
Introduction to Vibration Qualification TestingIntroduction to Vibration Qualification Testing
Introduction to Vibration Qualification TestingASQ Reliability Division
 
Manual de Intruções Extrator Elétrico Swing Medela
Manual de Intruções Extrator Elétrico Swing MedelaManual de Intruções Extrator Elétrico Swing Medela
Manual de Intruções Extrator Elétrico Swing MedelaViver Qualidade
 
Microstrip patch antenna using hfss
Microstrip patch antenna using hfssMicrostrip patch antenna using hfss
Microstrip patch antenna using hfssmahendra v
 
Wheel Slide Protection System in LHB FIAT Railway Coaches
Wheel Slide Protection System in LHB FIAT Railway  CoachesWheel Slide Protection System in LHB FIAT Railway  Coaches
Wheel Slide Protection System in LHB FIAT Railway CoachesJogendra Yadvendu
 

What's hot (20)

Conical horn antenna with parabolic reflector using cst
Conical horn antenna with parabolic reflector using cstConical horn antenna with parabolic reflector using cst
Conical horn antenna with parabolic reflector using cst
 
Doordarshan industrial training report
Doordarshan industrial training reportDoordarshan industrial training report
Doordarshan industrial training report
 
Static Stress Analysis of Connecting Rod Using Finite Element Approach
Static Stress Analysis of Connecting Rod Using Finite Element ApproachStatic Stress Analysis of Connecting Rod Using Finite Element Approach
Static Stress Analysis of Connecting Rod Using Finite Element Approach
 
Monopulse Radar
Monopulse RadarMonopulse Radar
Monopulse Radar
 
Image characteristics,latent image,film processing.
Image characteristics,latent image,film processing.Image characteristics,latent image,film processing.
Image characteristics,latent image,film processing.
 
Side Lobe Level (SLL) Reduction Methods in Antenna
Side Lobe Level (SLL) Reduction Methods in AntennaSide Lobe Level (SLL) Reduction Methods in Antenna
Side Lobe Level (SLL) Reduction Methods in Antenna
 
Target tracking
Target trackingTarget tracking
Target tracking
 
Wireless local area network antennas - WLAN -antennit
Wireless local area network antennas - WLAN -antennitWireless local area network antennas - WLAN -antennit
Wireless local area network antennas - WLAN -antennit
 
Fractal Antenna
Fractal AntennaFractal Antenna
Fractal Antenna
 
Satellite orbit and constellation design
Satellite orbit and constellation designSatellite orbit and constellation design
Satellite orbit and constellation design
 
Vsat handbook
Vsat handbookVsat handbook
Vsat handbook
 
Microstrip rectangular patch antenna
Microstrip rectangular  patch antennaMicrostrip rectangular  patch antenna
Microstrip rectangular patch antenna
 
Metamaterial based antenna with application to real life system
Metamaterial based antenna with application to real life systemMetamaterial based antenna with application to real life system
Metamaterial based antenna with application to real life system
 
Nano satellite
Nano satellite Nano satellite
Nano satellite
 
Jacobs Recent changes to transmission line design standards and the impact on...
Jacobs Recent changes to transmission line design standards and the impact on...Jacobs Recent changes to transmission line design standards and the impact on...
Jacobs Recent changes to transmission line design standards and the impact on...
 
Helical antenna
Helical antennaHelical antenna
Helical antenna
 
Introduction to Vibration Qualification Testing
Introduction to Vibration Qualification TestingIntroduction to Vibration Qualification Testing
Introduction to Vibration Qualification Testing
 
Manual de Intruções Extrator Elétrico Swing Medela
Manual de Intruções Extrator Elétrico Swing MedelaManual de Intruções Extrator Elétrico Swing Medela
Manual de Intruções Extrator Elétrico Swing Medela
 
Microstrip patch antenna using hfss
Microstrip patch antenna using hfssMicrostrip patch antenna using hfss
Microstrip patch antenna using hfss
 
Wheel Slide Protection System in LHB FIAT Railway Coaches
Wheel Slide Protection System in LHB FIAT Railway  CoachesWheel Slide Protection System in LHB FIAT Railway  Coaches
Wheel Slide Protection System in LHB FIAT Railway Coaches
 

Viewers also liked

Shock- Dont waste Food - Always Thanks to Allah
Shock- Dont waste Food - Always Thanks to Allah Shock- Dont waste Food - Always Thanks to Allah
Shock- Dont waste Food - Always Thanks to Allah rama52
 
Analog to Digital Converters and Data Acquisition Systems
Analog to Digital Converters and Data Acquisition SystemsAnalog to Digital Converters and Data Acquisition Systems
Analog to Digital Converters and Data Acquisition SystemsMathivanan Natarajan
 
Asynchronous Serial Communication and standards
Asynchronous Serial Communication and standardsAsynchronous Serial Communication and standards
Asynchronous Serial Communication and standardsMathivanan Natarajan
 
Data acquisition system
Data acquisition systemData acquisition system
Data acquisition systemSANTOSH A M S
 
Data acquisition softwares
Data acquisition softwaresData acquisition softwares
Data acquisition softwaresSachithra Gayan
 
Lectute instrumentation and process control data acquisition
Lectute instrumentation and process control data acquisitionLectute instrumentation and process control data acquisition
Lectute instrumentation and process control data acquisitionrama52
 
Data Acquisition System
Data Acquisition SystemData Acquisition System
Data Acquisition Systemrajparkash
 
Data Acquisition System and Data loggers
Data Acquisition System and Data loggersData Acquisition System and Data loggers
Data Acquisition System and Data loggersSwara Dave
 
Asynchronous and synchronous
Asynchronous and synchronousAsynchronous and synchronous
Asynchronous and synchronousAkhil .B
 
Synchronous and-asynchronous-data-transfer
Synchronous and-asynchronous-data-transferSynchronous and-asynchronous-data-transfer
Synchronous and-asynchronous-data-transferAnuj Modi
 
CMOS logic circuits
CMOS logic circuitsCMOS logic circuits
CMOS logic circuitsMahesh_Naidu
 
CMOS VLSI design
CMOS VLSI designCMOS VLSI design
CMOS VLSI designRajan Kumar
 
Powerpoint presentation for data logging
Powerpoint presentation for data loggingPowerpoint presentation for data logging
Powerpoint presentation for data loggingSufinah Ensian
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Satya P. Joshi
 
Signal Conditioning & Data Acquisition: Chapter 2
Signal Conditioning & Data Acquisition: Chapter 2Signal Conditioning & Data Acquisition: Chapter 2
Signal Conditioning & Data Acquisition: Chapter 2Caption Data Limited
 
Thermal Imaging and its Applications
Thermal Imaging and its ApplicationsThermal Imaging and its Applications
Thermal Imaging and its ApplicationsPriyanka Goswami
 

Viewers also liked (19)

Shock- Dont waste Food - Always Thanks to Allah
Shock- Dont waste Food - Always Thanks to Allah Shock- Dont waste Food - Always Thanks to Allah
Shock- Dont waste Food - Always Thanks to Allah
 
Analog to Digital Converters and Data Acquisition Systems
Analog to Digital Converters and Data Acquisition SystemsAnalog to Digital Converters and Data Acquisition Systems
Analog to Digital Converters and Data Acquisition Systems
 
Data Logger
Data LoggerData Logger
Data Logger
 
Asynchronous Serial Communication and standards
Asynchronous Serial Communication and standardsAsynchronous Serial Communication and standards
Asynchronous Serial Communication and standards
 
Data acquisition system
Data acquisition systemData acquisition system
Data acquisition system
 
Data acquisition softwares
Data acquisition softwaresData acquisition softwares
Data acquisition softwares
 
Lectute instrumentation and process control data acquisition
Lectute instrumentation and process control data acquisitionLectute instrumentation and process control data acquisition
Lectute instrumentation and process control data acquisition
 
Data Acquisition System
Data Acquisition SystemData Acquisition System
Data Acquisition System
 
Data Acquisition System
Data Acquisition SystemData Acquisition System
Data Acquisition System
 
Data Acquisition System
Data Acquisition SystemData Acquisition System
Data Acquisition System
 
Data Acquisition System and Data loggers
Data Acquisition System and Data loggersData Acquisition System and Data loggers
Data Acquisition System and Data loggers
 
Asynchronous and synchronous
Asynchronous and synchronousAsynchronous and synchronous
Asynchronous and synchronous
 
Synchronous and-asynchronous-data-transfer
Synchronous and-asynchronous-data-transferSynchronous and-asynchronous-data-transfer
Synchronous and-asynchronous-data-transfer
 
CMOS logic circuits
CMOS logic circuitsCMOS logic circuits
CMOS logic circuits
 
CMOS VLSI design
CMOS VLSI designCMOS VLSI design
CMOS VLSI design
 
Powerpoint presentation for data logging
Powerpoint presentation for data loggingPowerpoint presentation for data logging
Powerpoint presentation for data logging
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
Signal Conditioning & Data Acquisition: Chapter 2
Signal Conditioning & Data Acquisition: Chapter 2Signal Conditioning & Data Acquisition: Chapter 2
Signal Conditioning & Data Acquisition: Chapter 2
 
Thermal Imaging and its Applications
Thermal Imaging and its ApplicationsThermal Imaging and its Applications
Thermal Imaging and its Applications
 

Similar to Presentation_Final

micro controllers 1.ppt
micro controllers 1.pptmicro controllers 1.ppt
micro controllers 1.pptsiminkhan
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONSRamaPrabha24
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentseceprinter6
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)Gurwinder Singh
 
Robotics & Embedded IoT System Design [Day-3]
Robotics & Embedded IoT System Design [Day-3]Robotics & Embedded IoT System Design [Day-3]
Robotics & Embedded IoT System Design [Day-3]Deepam Dubey
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollersnehapvs
 
The 8086 Micro Processor Architecture By Dr. RidhaJemal
The 8086 Micro Processor Architecture By Dr. RidhaJemalThe 8086 Micro Processor Architecture By Dr. RidhaJemal
The 8086 Micro Processor Architecture By Dr. RidhaJemalAnas Sa
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationAmrutaMehata
 
8051 microcontroller and embedded training (sahil gupta 9068557926)
8051 microcontroller and embedded training  (sahil gupta   9068557926)8051 microcontroller and embedded training  (sahil gupta   9068557926)
8051 microcontroller and embedded training (sahil gupta 9068557926)Sahil Gupta
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessorRamaPrabha24
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV Designing Embedded System with 8051...
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV  Designing Embedded System with 8051...SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV  Designing Embedded System with 8051...
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV Designing Embedded System with 8051...Arti Parab Academics
 
Pc based wire less data aquisition system using rf(1)
Pc based wire less data aquisition system using rf(1)Pc based wire less data aquisition system using rf(1)
Pc based wire less data aquisition system using rf(1)Vishalya Dulam
 
embedded system and microcontroller
 embedded system and microcontroller embedded system and microcontroller
embedded system and microcontrollerSHILPA Sillobhargav
 
Module -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxModule -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxDrVaibhavMeshram
 
A 32-Bit Parameterized Leon-3 Processor with Custom Peripheral Integration
A 32-Bit Parameterized Leon-3 Processor with Custom Peripheral IntegrationA 32-Bit Parameterized Leon-3 Processor with Custom Peripheral Integration
A 32-Bit Parameterized Leon-3 Processor with Custom Peripheral IntegrationTalal Khaliq
 

Similar to Presentation_Final (20)

micro controllers 1.ppt
micro controllers 1.pptmicro controllers 1.ppt
micro controllers 1.ppt
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)
 
Robotics & Embedded IoT System Design [Day-3]
Robotics & Embedded IoT System Design [Day-3]Robotics & Embedded IoT System Design [Day-3]
Robotics & Embedded IoT System Design [Day-3]
 
8051 slide
8051 slide8051 slide
8051 slide
 
AT89 S52
AT89 S52AT89 S52
AT89 S52
 
002079
002079002079
002079
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
The 8086 Micro Processor Architecture By Dr. RidhaJemal
The 8086 Micro Processor Architecture By Dr. RidhaJemalThe 8086 Micro Processor Architecture By Dr. RidhaJemal
The 8086 Micro Processor Architecture By Dr. RidhaJemal
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
 
8051 microcontroller and embedded training (sahil gupta 9068557926)
8051 microcontroller and embedded training  (sahil gupta   9068557926)8051 microcontroller and embedded training  (sahil gupta   9068557926)
8051 microcontroller and embedded training (sahil gupta 9068557926)
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV Designing Embedded System with 8051...
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV  Designing Embedded System with 8051...SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV  Designing Embedded System with 8051...
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV Designing Embedded System with 8051...
 
Pc based wire less data aquisition system using rf(1)
Pc based wire less data aquisition system using rf(1)Pc based wire less data aquisition system using rf(1)
Pc based wire less data aquisition system using rf(1)
 
Ee6008 mcbsd notes
Ee6008 mcbsd notesEe6008 mcbsd notes
Ee6008 mcbsd notes
 
embedded system and microcontroller
 embedded system and microcontroller embedded system and microcontroller
embedded system and microcontroller
 
MICROCONTROLLER 8051
MICROCONTROLLER 8051MICROCONTROLLER 8051
MICROCONTROLLER 8051
 
Module -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxModule -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptx
 
A 32-Bit Parameterized Leon-3 Processor with Custom Peripheral Integration
A 32-Bit Parameterized Leon-3 Processor with Custom Peripheral IntegrationA 32-Bit Parameterized Leon-3 Processor with Custom Peripheral Integration
A 32-Bit Parameterized Leon-3 Processor with Custom Peripheral Integration
 

More from Priyanka Goswami

Fog computing and data concurrency
Fog computing and data concurrencyFog computing and data concurrency
Fog computing and data concurrencyPriyanka Goswami
 
Texture based feature extraction and object tracking
Texture based feature extraction and object trackingTexture based feature extraction and object tracking
Texture based feature extraction and object trackingPriyanka Goswami
 
Biomedical image processing ppt
Biomedical image processing pptBiomedical image processing ppt
Biomedical image processing pptPriyanka Goswami
 

More from Priyanka Goswami (6)

Fog computing and data concurrency
Fog computing and data concurrencyFog computing and data concurrency
Fog computing and data concurrency
 
Project 3
Project 3Project 3
Project 3
 
Texture based feature extraction and object tracking
Texture based feature extraction and object trackingTexture based feature extraction and object tracking
Texture based feature extraction and object tracking
 
Stock analysis report
Stock analysis reportStock analysis report
Stock analysis report
 
Cad report
Cad reportCad report
Cad report
 
Biomedical image processing ppt
Biomedical image processing pptBiomedical image processing ppt
Biomedical image processing ppt
 

Presentation_Final

  • 1. Satellite Optical Payload Controller and Data processing Embedded System By-Priyanka Goswami(12BIC053) Guided by- Prof. H.K Patel Mr. Jimit Gadhiya, (SCPD/SEDA, SAC, ISRO)
  • 2. Electro-Optical Payload • Electro optical satellite payload is a special instrument designed and developed for operating on a satellite deck. • It carries out the remote sensing of the earth surface which is then used to generate images for carrying out weather and atmospheric observations and resource mapping of earth surface and also in interplanetary missions. • The EO Payload has the following components: 1. Telescope 2. Sensor/Detector Array 3. The analog signals from the pixels of the detector are connected to electronic processing circuits like pre-amplifiers followed by ADC. 4. The digitised output stream is further processed/formatted and then transferred to other satellite sub-systems like data transmitters and RF antennas. 5. Payload commanding and control system (Payload Controller). Institute of Technology, Nirma University 2
  • 3. Payload Controller • A payload controller is designed, developed and incorporated in the instrument for remote control and monitoring of complex instrument like the EO payload. • Main task performed by the controller are: 1. Interfacing the payload with the satellite systems like on-board computer(OBC) telemetry and tele- command system and interfacing it with the data handling system. 2. Commanding. 3. Power on/off and special power sequence. 4. Enabling and disabling clocks and timing signals, timer. based on/off and period of operation. 5. Mode selection (calibration, de-contamination, etc) 6. Control of the temperature using heaters. 7. Ensuring that the above tasks are run in a proper schedule. Institute of Technology, Nirma University 3
  • 4. Figure.1: Block Diagram of Payload Controller with other sub-systems Institute of Technology, Nirma University 4
  • 5. Payload Controller • The payload controller is implemented using a dedicated micro-controller based system on a single FPGA (SoC) with a defined interfacing logic. • It consists of a dedicated embedded hardware which includes: 1. MIL1553 controller 2. Microcontroller like 8051 3. GPIO ports 4. Timer 5. APB3 Bus 6. Memory blocks • Software which includes the initialisation program, scheduler and application programs and will run on the embedded hardware. • The embedded hardware is developed using IP Cores from the Microsemi Library in VHDL in LiberoIDE for radiation hardened device like RTAX2000. • The System Initialization, Scheduler and Application program is developed in Embedded C in Keil uVision 5 software. • The simulation of the complete project is done using ModelSIM. Institute of Technology, Nirma University 5
  • 6. Embedded Hardware in SoC Figure.2: Block Diagram of Embedded Hardware developed in LiberoIDE Institute of Technology, Nirma University 6
  • 7. • In-built IP Core available in the Microsemi library. • 8-bit embedded microcontroller having similar functionalities like the Intel 8051 or Atmel AT89c51. • It performs the task of initialising the 1553BRM IP Core internal registers, CoreTimer, various Interrupts and running the scheduler • Uses the Harvard architecture (separate memory spaces for code and data). Core8051s Figure.3 : Core8051s I/O PortsInstitute of Technology, Nirma University 7
  • 8. Core8051s Memory 1. Program memory (PROM) - Core8051s can address up to 64K (0x0000 to 0xFFFF) of program memory. It is accessed by the core whenever the MEMPSRD signal goes high and the op-code located at the address determined by MEMADDR is fetched and sent through the input port MEMDATAI. Figure.4: Core8051s reading Op-Code from Program Memory 2. Internal Memory - The Core8051s has an internal memory of 256x8 bytes that has been divided into two parts: 1). Add. 0x80 to 0xFF are reserved for the SFRs and 2). Add. 0x00 to 0x7F is reserved for internal RAM. The SFRs are accessed through direct addressing. Since the SFRs of Core8051s and Intel 8051 are different a separate library file was created in Keil for utilising the various SFRs. Institute of Technology, Nirma University 8
  • 9. Core8051s Memory 3. External Data Memory: The Core8051s can address external data memory of maximum 64K (0x0000 to 0xFFFF). For the payload controller the External data memory has been synthesised within the FPGA using a Two Port RAM IP core which is available in the Microsemi Core Library. Table.1: Memory Mapping of External Data Memory Institute of Technology, Nirma University 9
  • 10. MIL-STD-1553 Protocol & 1553BRM IP Core • MIL-STD-1553 Protocol was first defined by the United States Department of Defense as a U.S. Air Force standard in 1973. • It has 3 types of terminal : Bus Controller (BC), Remote Terminal (RT) and Bus Monitor (BM). • The words are of following types (as used in project): 1. Command Word 2. Data Word • Each word is transmitted in Manchester encoded form. A packet will be made of 3-bit sync pulse followed by the 16-bit word and 1 bit for odd parity. Institute of Technology, Nirma University 10
  • 11. • For example: Command word: (0x0822) 16 = (0000100000100010)2. The transmitted command word after being converted to Manchester encoded form is: Figure.4: Waveform showing Manchester encoding of Command and 2 Data words • The IP Core (developed in VHDL) performs the function of the MIL1553 controller and is operated in RT mode with 24MHz clock. • It receives command and data words from the On Board Computer (OBC) through the MIL-STD-1553 bus in Manchester encoded form. • The Core8051s is used to initialise the control registers of the MIL1553 IP Core to set its mode of function, internal parameters, descriptor blocks and enable the interrupts. Institute of Technology, Nirma University 11
  • 12. • The ‘Sub address Accessed’ Interrupt of the 1553BRM IP Core is enabled through the Interrupt Mask register by setting the bit ‘1’. • INTOUTM (mapped to a input port bit of Core8051s) goes high when a new message is received and remains so till acknowledged (INTACKM given high to low pulse). Table.2: 1553BRM IP Core Internal Registers for RT mode of operation Figure.5: Simulation of 1553BRM IP Core Interrupt • 8051 accesses the internal registers of 1553BRM through the following external memory addresses: Institute of Technology, Nirma University 12
  • 13. 1553BRM IP Core • Descriptor block for RT Mode Operation : A block of 512 consecutive words is reserved in the memory for storing the sub addresses and the descriptor table. The following information is store: 1. Control Word - It is a 16-bit word used by the core to process the message, details about the transaction and is initialised by the CPU . 2. Data Pointer A or B- It contains the 16 bit starting address where the message received by the core is stored and can be later retrieved. Figure.6: Simulation of 1553BRM IP Core receiving Data Words and storing in the backend memory Institute of Technology, Nirma University 13
  • 14. Core Timer • Decrementing counter based timer IP core available in the Microsemi library. • Used for providing periodic ticks to the Core8051s required for execution of the scheduler. • Required as the Core8051s does not have an internal timer or counter. • It is an APB slave and hence is interfaced through the CoreAPB3 to the 8051s (which is an APB master). • The timer registers are initialised by the 8051s by writing to the corresponding addresses of the external memory (reserved by APB3). • The timer is being operated in the continuous mode. Table.3: Memory Map for APB3-Core Timer Interface Institute of Technology, Nirma University 14
  • 15. • The TIMINT pin of the CoreTimer is connected to the INT1 pin of 8051s. When the decrementing counter becomes zero an interrupt is generated and in the interrupt service routine Timer interrupt pin is cleared for the next cycle. • For generating timer ticks at 0.25ms time interval: The PCLK runs at a frequency of 24MHZ = 0.041667us The Pre-scale value = (64)10 Hence counter will decrement at timer interval = 0.041667us x 128 = 5.33us. To get tick interval at 0.25ms = 250us: 250us/5.33us = (46)10 = (2E) 16 Figure.7: Simulation of CoreTimer for generating 0.25ms ticks Institute of Technology, Nirma University 15
  • 16. AMBA Bus & CoreAPB3 • The Advanced Microcontroller Bus Architecture (AMBA) was first introduced in 1996 • It is widely used interconnection standard for high performance embedded processors which can be implemented in System on Chip (SoC) design. • The CoreAPB3 is a bus component that provides AMBA 3 Advanced Peripheral Bus fabric for interconnecting an APB master and up to 16 APB slaves. • The APB bus is used in the project for interfacing the Core8051s, which is an embedded processor and a APB master to the CoreTimer which a APB slave . • The APB3 bus reserves the top 4K of the external memory for the interfacing of the slave devices with the master. • The APB3 interfaces the first peripheral from the address 0xF000 onwards with offsets of 0x04, 0x08, 0x0C etc. Institute of Technology, Nirma University 16
  • 17. Figure.8: Simulation of CoreAPB3 transaction with Core8051s and CoreTimer • When the Core8051s writes an 8-bit data in the memory address 0xF000, the address (through PADDR port) and the 8-bit data (through PWDATA port) is sent to the corresponding ports of the CoreAPB3. • Also since the data is written on address 0xF000 the Core8051s also sends a PSELS signal to select the APB3 slave 0 (CoreTimer). • The data then gets latched to the bus and is sent to the slave and gets written in the 0x00 addressed internal register of the peripheral. Institute of Technology, Nirma University 17
  • 18. Testing of Embedded Hardware • Tested by adding a Testbench which mimics the On-Board Computer and sends command and data words in Manchester Encoded form to the Core1553 and generates the 24Mhz system clock and system reset signals. Figure.9: Simulation of embedded hardware using TestbenchInstitute of Technology, Nirma University 18
  • 19. Scheduler • Scheduler is an application that handles the sharing of the CPU and resources like I/O ports among different tasks. • The scheduler has to maintain two types of task queues: – The Job Queue – The Ready Queue • The scheduler will have the following functions: – Initialise CoreTimer and MIL1553 IP Core – Start the Timer and also enable the Core8051s INT1 interrupt – Add task to the Job Queue – Check the task delay and flag and execute task. – Decrement the delay counter and update job queue (implemented as ISR when the CoreTimer generates an interrupt) – Wait state (interrupted by the scheduler/timer tick). • For the Payload Controller, three types of scheduler algorithms were designed: – Co-operative type Scheduler. – Round-Robin type Scheduler. – Round-Robin Scheduler with one Interrupt based High Priority Task (Hybrid- Scheduler). Institute of Technology, Nirma University 19
  • 20. Co-Operative Scheduler • Advantages: – It is the simplest type of scheduler algorithm to implement. – There is no risk of task being interrupted as the next task in queue is executed only when the first task has been executed. – Program size is 631 bytes. • Disadvantages: – All the tasks have to be designed such that their total execution time is less than the timer period. – If a task gets into an endless loop the other tasks will not get executed as the timer will reset the scheduler and a new cycle will task. Institute of Technology, Nirma University 20
  • 21. Round-Robin Scheduler • Advantages: – It is a deterministic scheduler. – No task monopolises the CPU for time more than that set by the timer after which the task queue is updated. – Periodic task will always be executed at the pre-determined time-interval. • Disadvantages: – No task can be assigned a higher priority. – If no task is to be executed for a particular period, then the scheduler goes to wait state. – Program size is 700 bytes which is more compared to Co-operative scheduler. Institute of Technology, Nirma University 21
  • 22. Round-Robin Scheduler with High Priority Task • Advantages: – Task can be assigned a higher priority. – It also ensures that there is no loss of data (which will be coming in real time) . – Critical tasks will be serviced immediately. • Disadvantages: – It is an un-deterministic scheduler as current task execution will be stopped and the scheduler can be interrupted at any point of execution, – Point of return from the interrupt is hence scheduler can fail. – Program size is 763 bytes . Institute of Technology, Nirma University 22
  • 23. Simulation Results Figure:10. Simulation of Co-operative Scheduler Figure:11. Simulation of Round-Robin Scheduler Figure:12. Simulation of Round-Robin Scheduler with High Priority Task Institute of Technology, Nirma University 23
  • 24. Payload Controller Applications • In the project two tasks have been developed: 1. Task1 : Receiving and Storing Data Words received from the OBC Core8051s reads two data words (DW1 and DW2) coming from the 1553BRM IP Core and stores a copy in the external data memory. It then generates a high to low pulse bit 2 of output port 5 (which is mapped to INTACKM input pin) to clear interrupt of 1553BRM IP Core for next data packet. The 16-bit data words will be stored in two 8 bit words (MSB and LSB). Figure.13: Simulation of Task 1- Receiving and Storing Data Words Institute of Technology, Nirma University 24
  • 25. 2. Task 2: Interpreting the data words to determine the type of command to be executed and implementing the corresponding function by processing them. – The program first reads the MSB of DW1 and determines the type of command to be executed (Table.4). – Depending on command it will process DW2 to generate either on/off pulse on particular bits of o/p port or send it as a data command in serial form. Table.4: Command types with corresponding identification parameter • For example if OBC sends DW1 and DW2 as E1AA and 89F3 respectively then the On command will be scheduled and when task is executed a pulse will be generated on bit 2 of output port 1. Institute of Technology, Nirma University 25
  • 26. Implementation and Testing of Payload Controller Figure.16: Simulation of Payload Controller system with multiple on, off and data commands Institute of Technology, Nirma University 26
  • 27. Project Outcome • A System on Chip (SoC/FPGA) based payload controller has been designed and tested for use in electro-optical payloads like GISAT, Chandrayaan-2 and OCM satellites. • The LiberoIDE software was used for designing the embedded hardware and I/O port mapping. A custom Testbench developed in VHDL was used for testing and simulation of the system using the ModelSIM software. • The software was written in Embedded C language and compiled in Keil uVision5 software . • Study of the MIL-STD-1553 and AMBA protocol was carried out. • The project included developing of the controller software, which included initialization of the 1553BRM IP Core registers and use of CoreTimer. • A study and development of different Scheduler algorithms was carried out and the Round-Robin type of scheduler was selected for the payload controller. • Pulse command and Data Command payload applications were designed and implemented using the scheduler. • The whole payload controller system (hardware and software) was tested and simulated successfully and ready for hardware implementation. Institute of Technology, Nirma University 27
  • 28. Thank You Institute of Technology, Nirma University 28