Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

212 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ES_Synth Report

Group Peaky Blinders’ report for the ES_synth project.

Table of Contents

Advanced features implemented

Task categorisations and characterisations

Task Functionality Implementation Type (interrupt/thread) Initiation Interval (ms) Aka deadline Worst-case execution time (ms)
updateKeys Reads and updates all input variables in system state thread 25.2 0.53425 (17096 us for 32)
updateDisplay Outputs UI onto display thread 100 16.778 (536898 us for 32)
decodeMessage Loads oldest message in received queue into system state variable thread 0.009875 (316 us for 32) note: we had to fill up the msgin queue to be able to run the function otherwise the queuereceive blocked the function
CAN_TX_Task Transmits oldest message in transmitting queue over CAN bus thread 0.01 (30 us for 3)
  • ran the test 3 times
CAN_TX_ISR Gives the semaphore to signal when a new transmission can be sent interrupt 0.0026667 (8 us for 3)
  • had to change the give from ISR to just give
  • ran the test for 3 times
CAN_RX_ISR Places a received message onto the received queue interrupt 0.99333 (2980 us for 3)
  • had to set loopback to true
  • to make 3 calls of CAN_TX to fill up the mailbox
  • had to change the queuesendfromISR to just queuesend
  • ran the test for 3 times
sampleISR Based on the current system state (notes pressed, octave, tone, etc) output value to speaker interrupt 0.0455 0.0155 (496 us for 32)

Critical instance analysis

$$\lceil \dfrac{100}{25.2} \rceil * 0.53425 + \lceil \dfrac{100}{100} \rceil * 16.778 + \lceil \dfrac{100}{25.2} \rceil * 0.3555 + \lceil \dfrac{100}{60} \rceil * 0.36 + \lceil \dfrac{100}{60} \rceil * 0.104 + \lceil \dfrac{100}{25.2} \rceil * 0.99333 + \lceil \dfrac{100}{0.0455} \rceil * 0.00155 \le 100$$

Dependency diagram

About

CW2

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages