STE 58762

2.8PROGRAMS

This section describes SCOL programs.

2.8.1Program Declaration

A program has to have the following basic structure. If it does not, it is not a valid program.

PROGRAM <name of your program>

Contents of your program

END

A program is made up of everything from the PROGRAM statement to the END statement.

Write a program name after the PROGRAM statement. For example, if you want to call your program "George," write PROGRAM GEORGE (and not PROGRAM <GEORGE>.) (Note, however, that the program name becomes an identifier). Put the contents of your program between the PROGRAM statement and the END statement.

Example)

 

PROGRAM SAMPLE

'Program name "SAMPLE"

REMARK SAMPLE

'Comment

SPEED=20

'Set the movement speed to 20% of the maximum speed.

MOVE Al

'Move the robot to position Al.

DELAY 0.5

'Wait for 0.5 sec.

MOVE A2

'Move the robot to position A2.

DELAY 0.5

'Wait for 0.5 sec.

END

'End of program

As shown in the example, the body of the program is composed of statements made up of an arrangement of SCOL commands. A new line is created every time you push the "RETURN" (or "ENTER") key when writing (or editing) the program. Up to 130 characters can be contained in a single line. You may add spaces as you wish in order to make the program neater and easier to read. Note how comments are entered with ' marks.

Note)

No spaces can be placed between characters structuring a word of a command and identifier.

2-21

Page 35
Image 35
Toshiba STE 58762 instruction manual Programs, Program Declaration, - 2-21 -

STE 58762 specifications

The Toshiba STE 58762 is a high-performance microcontroller known for its advanced features and robust architecture, making it suitable for a range of applications in automotive, industrial, and consumer electronics. One of the standout characteristics of this microcontroller is its ability to perform complex computations with improved efficiency, thanks to its 16-bit RISC architecture. The RISC (Reduced Instruction Set Computing) design enables faster processing speeds, lower power consumption, and an overall increase in performance.

The STE 58762 integrates a variety of peripherals that enhance its functionality. It includes multiple I/O ports, timers, and an advanced interrupt management system, allowing for seamless interaction with external devices. The integrated analog-to-digital converter (ADC) is particularly noteworthy, enabling the microcontroller to handle real-time data acquisition, essential in applications that require precision and quick response times.

Another significant advantage of the Toshiba STE 58762 is its built-in support for communication protocols, facilitating easy integration into different systems. It supports standard communication interfaces such as UART, SPI, and I2C, which enhance its connectivity with other devices and components. This flexibility makes the microcontroller a versatile choice for designers looking to implement diverse communication methods in their projects.

In terms of memory architecture, the STE 58762 offers an ample amount of ROM and RAM, allowing for sufficient space to store program code and data. This characteristic is crucial for developers who require extensive data handling capabilities in their applications. Furthermore, the microcontroller is equipped with built-in power management features, including sleep and idle modes, that optimize energy consumption during operation.

Overall, the Toshiba STE 58762 microcontroller is characterized by its powerful processing capabilities, extensive peripheral support, and efficient power management. These features make it an excellent choice for demanding applications, providing designers with the tools they need to create innovative and reliable solutions across various industries. As technology continues to evolve, the STE 58762 stands out as a dependable option, ensuring performance and efficiency are met in today’s competitive market. Its reliability and robust features position it as a strong contender in the landscape of microcontroller options available today.