| ??? 05/27/08 21:58 Read: times |
#155186 - Code with comments Responding to: ???'s previous message |
#include <stdio.h>
#include "reg9107.h"
void main()
{
TRIM |= 0x40; // Clock out enable,
//clock = 7.327MHz internal RC oscillator
P0M1 &= 0x7D; // Pin 0.7 (clock out) and Pin 0.2 in
P0M2 |= 0x82; //push pull configuration
EA = 1; // Enable all interrupts.
P0 = 0xFF; // Port 0 = 0xFF, pin 0.2 should be high
// and clock/2 as output on pin 0.7
while(1); // Infinite loop
}
|
| Topic | Author | Date |
| Not getting response from P89LPC9107 | 01/01/70 00:00 | |
| Pin connected ? | 01/01/70 00:00 | |
| Re: Pin connected? | 01/01/70 00:00 | |
| Read the data sheet? | 01/01/70 00:00 | |
| Re: Read datasheet | 01/01/70 00:00 | |
| Code with comments | 01/01/70 00:00 | |
| Interrupts ? | 01/01/70 00:00 | |
| RE: Interrupts | 01/01/70 00:00 | |
| Check | 01/01/70 00:00 | |
| Re: check | 01/01/70 00:00 | |
| Not quite | 01/01/70 00:00 | |
| Re : check | 01/01/70 00:00 | |
I got it, IDATA length parameter is wrong | 01/01/70 00:00 |



