02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4<br />

Hardware <strong>Guide</strong>lines<br />

4.4.2 System Clock<br />

A system clock interrupt is mandatory. The system clock for VxWorks requires an<br />

interrupt between 30 Hz and ~2 KHz.<br />

The default is 60 Hz and it is desirable to generate this frequency exactly. Relying<br />

on baud-rate generators often makes this precision unattainable.<br />

4<br />

4.4.3 Auxiliary Clock<br />

VxWorks uses an auxiliary clock from 30 Hz to ~2 KHz to profile CPU utilization.<br />

This is required by the spy utility. It is useful to have a 24-bit (or greater) counter<br />

driven at a high frequency (~10 MHz) for profiling performance.<br />

4.4.4 Timestamp Clocks<br />

Many of the generic timers in target/src/drv/timer include timestamp<br />

functionality. A timestamp driver provides a high-resolution time measurement<br />

facility, typically used by the WindView product. See the WindView User’s <strong>Guide</strong>:<br />

Creating a VxWorks Timestamp Driver for more information on the API.<br />

4.4.5 Serial Ports<br />

VxWorks currently requires one RS-232 serial port, which is needed during the<br />

development and debug phases. The device should be configurable to operate at a<br />

number of “standard” baud rates; 9600 is preferred. Standard communications<br />

parameters are 8 data bits, 1 stop bit, no parity, and no modem control lines. It is<br />

possible to boot VxWorks without a serial interface, and in production, it is<br />

conceivable that embedded systems will not have a serial interface.<br />

The preference is to consider the target board to be DCE. Therefore, the RS-232<br />

connectors should be one-to-one and not null-modem (pins 2 and 3 crossed). This<br />

allows for a straightforward connection to a standard terminal.<br />

VxWorks supports software flow control; hardware flow control signals are<br />

usually ignored. Therefore, only three lines (transmit, receive, and signal ground)<br />

are required for operation.<br />

The API for SIO type serial drivers has been expanded to include support for<br />

hardware flow control and for changing the operational parameters for each serial<br />

device. The user can alter the hardware options flag for each device in order to<br />

79

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!