| поискавой системы для электроныых деталей |
|
LM628 датащи(PDF) 11 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
LM628 датащи(HTML) 11 Page - National Semiconductor (TI) |
|
11 / 24 page ![]() Theory of Operation (Continued) LM628 READING AND WRITING OPERATIONS The host processor writes commands to the LM628 via the host I/O port when Port Select (PS ) input (Pin 16) is logic low. The desired command code is applied to the parallel port line and the Write (WR ) input (Pin 15) is strobed. The command byte is latched into the LM628 on the rising edge of the WR input. When writing command bytes it is neces- sary to first read the status byte and check the state of a flag called the “busy bit” (Bit 0). If the busy bit is logic high, no command write may take place. The busy bit is never high longer than 100 µs, and typically falls within 15 µs to 25 µs. The host processor reads the LM628 status byte in a similar manner: by strobing the Read (RD ) input (Pin 13) when PS (Pin 16) is low; status information remains valid as long as RD is low. Writing and reading data to/from the LM628 (as opposed to writing commands and reading status) are done with PS (Pin 16) logic high. These writes and reads are always an integral number (from one to seven) of two-byte words, with the first byte of each word being the more significant. Each byte re- quires a write (WR ) or read (RD ) strobe. When transferring data words (byte-pairs), it is necessary to first read the status byte and check the state of the busy bit. When the busy bit is logic low, the user may then sequentially transfer both bytes comprising a data word, but the busy bit must again be checked and found to be low before attempting to transfer the next byte pair (when transferring multiple words). Data transfers are accomplished via LM628-internal interrupts (which are not nested); the busy bit informs the host proces- sor when the LM628 may not be interrupted for data transfer (or a command byte). If a command is written when the busy bit is high, the command will be ignored. The busy bit goes high immediately after writing a command byte, or reading or writing a second byte of data (See Figure 5 thru Figure 7). MOTOR OUTPUTS The LM628 DAC output port can be configured to provide ei- ther a latched eight-bit parallel output or a multiplexed 12-bit output. The 8-bit output can be directly connected to a flow-through (non-input-latching) D/A converter; the 12-bit output can be easily demultiplexed using an external 6-bit latch and an input-latching 12-bit D/A converter. The DAC output data is offset-binary coded; the 8-bit code for zero is 80 hex and the 12-bit code for zero is 800 hex. Values less than these cause a negative torque to be applied to the mo- tor and, conversely, larger values cause positive motor torque. The LM628, when configured for 12-bit output, pro- vides signals which control the demultiplexing process. See for details. The LM629 provides 8-bit, sign and magnitude PWM output signals for directly driving switch-mode motor-drive amplifi- ers. Figure 11 shows the format of the PWM magnitude out- put signal. TABLE 2. LM628 User Command Set Command Type Description Hex Data Note Bytes RESET Initialize Reset LM628 00 0 1 PORT8 Initialize Select 8-Bit Output 05 0 2 PORT12 Initialize Select 12-Bit Output 06 0 2 DFH Initialize Define Home 02 0 1 SIP Interrupt Set Index Position 03 0 1 LPEI Interrupt Interrupt on Error 1B 2 1 LPES Interrupt Stop on Error 1A 2 1 SBPA Interrupt Set Breakpoint, Absolute 20 4 1 SBPR Interrupt Set Breakpoint, Relative 21 4 1 DS009219-13 FIGURE 11. PWM Output Signal Format (Sign output (pin 18) not shown) www.national.com 11 |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |