TV remote controlled BRAT project

Opps, found the Pro 28 datasheet w/schematic, but now don’t understand the Atom Pro 28 Pin outs. The 3 IRQs are assigned to Pins 6, 7, 8, not Pin 3 ( which is a conventional I/O) in the original Brat post.
red

Page 187 of the Atom PRO manual has the pin outs and shows what features of the H8/3664 are brought out to the Atom PRO pins.

P0 - P4 = WKP0 - WKP4 and AN0 - AN3

P6 = I2C SDA
P7 = I2C SCL

P8 = IRQ1

P16 = AN7
P17 = AN6
P18 = IRQ2 and AN5
P19 = IRQ3 and AN4

That is a subset of what is shown. I never could get interrupts from an external source to IRQ1 to work, even after several hours with the H8/3664 hardware manual. Please do let me know if you get interrupts working and how you did it.

8-Dale

The H8-3664(or 3694) in relation to AtomPro pinouts are:

[code]AtomPro24
P0 = P50 & PB0
P1 = P51 & PB1
P2 = P52 & PB2
P3 = P53 & PB3
P4 = P54
P5 = P55
P6 = P56 & P16
P7 = P57 & P17
P8 = P80 & P15
P9 = P81 & P74
P10 = P82 & P75
P11 = P83 & P76
P12 = P84 & P10
P13 = P85 & P20
P14 = P86 & P21
P15 = P87 & P22
P32 = P14
P33 = P14

AtomPro28
P0 = P50 & PB0
P1 = P51 & PB1
P2 = P52 & PB2
P3 = P53 & PB3
P4 = P54
P5 = P55
P6 = P56
P7 = P57
P8 = P80 & P15
P9 = P81 & P74
P10 = P82
P11 = P83
P12 = P84 & P10
P13 = P85 & P20
P14 = P86 & P21
P15 = P87 & P22
P16 = P11 & PB7
P17 = P12 & PB6
P18 = P16 & PB5
P19 = P17 & PB4
Sin = P14
Sout = P14
I2C eeprom = P75
I2C eeprom = P76
[/code]

As for why I used P3 I can’t remember now. I think it was so I could keep all the wiring next to each other but I don’t recall. I could have used any of the other WKP pins(I could have use any of the IRQ capable pins as well).

If you are having trouble getting your own external ints working you should be able to steal my WKP int code. IRQ interrupts work almost exactly the same way as far as using them in MBasic(just on diffrerent pins).

Can you get a return value from your function call (subroutine)?

Would a prototype for the function call get around this problem, and give you an error message?

Alan KM6VV

Yes, you can get a return value, but it is not quite the same as in C where you can then use this directly in expressions.

See page 87 (97 in the PDF) of the help file.

Kurt

OK, the Pro can pass and return values. the Basic Atom does not.

thanks!

Alan KM6VV

that is cool…