What are the difference between Interactive and Drill Down
Reports?
Answer Posted / varun
Mini Project (Case study)
1) Name: Displaying of Analog, Digital Signals, testing of
LEDs, CAN communication and read/write EEPROM on the hyper
terminal based on the user selection.
Project: The following peripherals are used based on the
user input.
1) Read ADC Values
2) LED Test
3) EEPROM Test
4) CAN Communication Test
Architecture:
Description:
The following menu shall be displayed on the hyper-terminal
of PC
l
Main Menu:
1) Read ADC Values
2) LED Test
3) EEPROM Test
4) CAN Communication Test
5) Reset the system
6) Stop
Enter the Choice:
The user shall select the option, based on the selection
respective peripheral shall be tested and result shall be
displayed on the hyper-terminal. For CAN, the message shall
be received on the trace window of CANalyzer or CANoe.
The menu and the result shall be displayed on the hyper-
terminal with the help of UART communications.
For selection 1 (Read ADC Values):
After selecting this option, the ADC shall be read every
500ms and the result shall be displayed on the hyper-
terminal along with the time stamps.
For selection 2 (LED Test):
When this option is selected then following LED menu shall
be displayed and based on the input value respective LED
shall be switched on with 50% duty cycle (200Hz frequency).
The position of the LED shall be remembered and after
reset, the same LED shall be switched on.
LED Menu:
Enter LED number to switch on [1-8]:
For selection 3 (EEPROM Test):
When this option is selected, following sub menu shall be
displayed,
EEPROM Menu:
1) EEPROM Write Data
2) EEPROM Read Data
Enter the choice:
1) After selecting the ‘EEPROM Write Data’ option, the
software shall prompt for the data from user (10 bytes) as
shown below and it shall be written in to the 10-succesive
location of EEPROM. After writing it to EEPROM, checksum
(16 bit checksum) shall be calculated for the written data
and it shall be displayed on the hyper-terminal as Checksum
Result: 0xXXXX. It shall store the checksum in the EEPROM.
Enter Data:
2) After selecting the ‘EEPROM Read Data’ option, the
software shall read the written data and checksum from
EEPROM. The read data shall be displayed on the hyper-
terminal along with the memory address as shown below
Memory Address: 0xXXXX
Data: 0xXX
And checksum as
Memory Address: 0xXXXX
Checksum: 0xXXXX
For selection 4 (CAN Communication Test):
After selecting this option, following sub menu shall be
displayed.
CAN Menu:
1) CAN Transmit
2) CAN Reception
Enter the choice:
Based on the above selection following functionality shall
be implemented
CAN Transmit:
When this option is selected, following CAN frame shall be
transmitted periodically (500ms) with the standard frame id
and 8 bytes of data. The frame id and data shall start from
zero and shall be incremented for each message.
For 1st message:
Message Id (standard id): 0x00
Data: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
For 2nd message:
Message Id (standard id): 0x01
Data: 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
….
….
For Nth message:
Message Id (standard id): 0x0N
Data: 0x0N 0x0N 0x0N 0x0N 0x0N 0x0N 0x0N 0x0N
CAN Reception:
Whenever the data is transmitted from the host (PC) with
the help of CANalyzer or CANoe, the received message shall
be displayed on the hyper-terminal with time stamp along
with frame id and data.
If the following message is received from the host then
corresponding LED’s shall be switched on.
The frame id, data and other details as given below,
Frame Id: 0xFF
Data: 0xXX 0x0 0x0 0x0 0x0 0x0 0x0 0x0
This message shall override the previous status of the LEDs.
Details of first byte:
Each bit of first data byte represent the corresponding LED
and it’s status.
i.e.
Bit0 corresponds to LED0
Bit1 corresponds to LED1
Bit2 corresponds to LED2
Bit3 corresponds to LED3
Bit4 corresponds to LED4
Bit5 corresponds to LED5
Bit6 corresponds to LED6
Bit7 corresponds to LED7
MSB
LSB
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit
0
LED7
0 – Off
1 – On LED6
0 – Off
1 – On LED5
0 – Off
1 – On LED4
0 – Off
1 – On LED3
0 – Off
1 – On LED2
0 – Off
1 – On LED1
0 – Off
1 – On LED0
0 – Off
1 – On
If the particular bit is ‘1’ then switch on the
corresponding LED, if it is ‘0’ then switch off the
corresponding LED.
For e.g: For the message id: 0xFF and Data: 0x05 0x0 0x0
0x0 0x0 0x0 0x0 0x0
The software shall switch on LED2 and LED0.
For selection 5 (Reset the system):
After selecting this option, the system shall reset and
after reset it shall display the Main Menu again.
For selection 6 (Stop):
After selecting this option, the system shall do nothing
and it shall wait for the next options.
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
how to use table control?if suppose i have 6 records and i want more 4 records in sequence.How to handle this scenario?
Will 50,000 records be uploaded directly into APP's Server?
What are the buffering options in abap?
Why do we need to code a loop statement in both the pbo and pai events for each table in the screen?
How to combine multiple order in one Delivery ( Step by Step)?
What are logical data bases used in hr module? : abap hr
When a program is created and need to be transported to prodn does selection texts always go with it? If not how do you make sure? Can you change the cts entries? How do you do it?
How to create a check box/option button in a list?
Reports: Event functionality.
What are multiple use BADIS?
When you prefer lsmw?
Can you print decimals in type n?
What are the different types of internal table?
On which even we can validate the input fields in module progams?
Explain the advantages/disadvantages of logical databases?