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


Please Help Members By Posting Answers For Below Questions

What is a data dictionary? : sap abap data dictionary

557


How can you find the field/data underlying a transaction?

605


hi,i worked mostly in core abap.know iam assigned to XI utility project.can u experts let me know what r the basic things i need to learn to work in XI utility project.i already searched in forum.thanks in advance.

1563


What is smart forms? : abap hr

602


can i use table key and key in an internal table and explain the functionalities of each one and what functionality does it give if both are used for same internal table

1798






What are the uses of the information in the data dictionary? : abap data dictionary

730


How to eliminate duplicate entries in internal tables? : abap data dictionary

790


Is there any BAPI to retrieve list of customers and their sales areas i.e., Cust No, Distr Channel and Division for all the customers.

1589


What is the transaction code to display the payroll results ? : abap hr

571


Can I execute user exits? If yes, how?

596


What are the functional modules used in sequence in bdc? : abap bdc

582


While sorting field groups we cannot use more than one key field. State true or false. : abap modularization

594


What is a help view? : abap data dictionary

672


What happens if only one of the commands set screen and leave screen is used without using the other?

596


In selection screen I have three fields, plant mat no and material group. If I input plant how do I get the mat no and material group based on plant dynamically?

692