Sample - Time Base
Changes
Application Description
This application firstly subscribes to the IRQ and Message service, and stops on any error
(please check the displayed traces for more information).
Then, the +TIME command has to be used to start the time base process. This process
is configurable with two parameters: the time period and the process notification mode.
The time period is configurable between 10 ms and 1s.
The process notification mode can be one of the following ones:
- Direct low level notification:
the process is directly called in the low level interruption handler execution context.
(Low Level --> Time Base Process)
- Message notification, from low level:
the process is called in the application task execution context, since a message posted from the low level interruption handler.
(Low Level --> Message Handler --> Time Base Process)
- Direct high level notification:
the process is directly called in the high level interruption handler execution context.
(High Level --> Time Base Process)
- Message notification, from high level:
the process is called in the application task execution context, since a message posted from the high level interruption handler.
(High Level --> Message Handler --> Time Base Process)
- Direct high level notification, with information generated in the low level handler:
the process is directly called in the high level interruption handler execution context; the counter input is the low level handler's one.
(Low Level --> High Level --> Time Base Process)
- Message notification, from high level, with information generated in the low level handler:
the process is called in the application task execution context, since a message posted from the high level interruption handler; the counter input is the low level handler's one.
(Low Level --> High Level --> Message Handler --> Time Base Process)
Once the time base process is launched, events can be monitored through the following trace levels:
- 2: Time base process events (always generated, whatever is the mode)
- 3: Low level handler events
- 4: High level handler events
- 5: Message handler events
Important note:
as written in the ADL IRQ service documentation, this one one is not available in RTE mode.
This sample is so only usable in Target environment.
AT+TIME (Time base control command)Command | Answers |
AT+TIME? | +TIME:
<Mode>
,
<Period>
OK
|
AT+TIME=? | +TIME:
(0-6)
,
(10-1000)
OK
|
AT+TIME=
<Mode>
,[
<Period>
] | +CME ERROR: 3
or
OK
|
Parameter | Values range | Description | Default value |
Mode | 0-6 |
Time base process notification mode:
- 0: stop time base process
- 1: Direct low level notification process
- 2: Low level message notification process
- 3: Direct high level notification process
- 4: High level message notification process
- 5: Direct high level notification process (with low level notification first)
- 6: High level message notification process (with low level notification first)
| NA |
Period | 10-1000 |
Time base process period, in ms
| 10 |
Updated: Tue Sep 19 17:18:12 CEST 2006;