hi, i don`t know ASM so i decided use C i get mios_base_v1_0b, get some exemples and compile this: main.c PIC18f452-i/p i am using inly core and dout, nothing else, maybe LCD neededor somthing else ?
#include <cmios.h>
#include <pic18fregs.h>
#include <cmios.h>
#include <pic18fregs.h>
#include "main.h"
app_flags_t app_flags;
unsigned char last_ain_pin;
unsigned char last_din_pin;
unsigned char last_dout_pin;
void Init(void) __wparam
{
// set shift register update frequency
MIOS_SRIO_UpdateFrqSet(1); // ms
// Up to 4 DOUTX4 modules (=16 shift registers = 128 digital outputs) can be connected
// set the maximum number here - it doesn't really hurt!
MIOS_SRIO_NumberSet(4);
}
void Tick(void) __wparam
{
}
void Timer(void) __wparam
{
}
void DISPLAY_Init(void) __wparam
{
}
void DISPLAY_Tick(void) __wparam
{
}
void MPROC_NotifyReceivedEvnt(unsigned char evnt0, unsigned char evnt1, unsigned char evnt2) __wparam
{
if( evnt0 == 0x80 || evnt0 == 0x90 ) {
if( evnt0 == 0x80 || evnt2 == 0x00 ) {
// Note Off
MIOS_DOUT_PinSet(evnt1, 0);
} else {
// Note On
MIOS_DOUT_PinSet(evnt1, 1);
}
}
}
void MPROC_NotifyFoundEvent(unsigned entry, unsigned char evnt0, unsigned char evnt1, unsigned char evnt2) __wparam
{
}
void MPROC_NotifyTimeout(void) __wparam
{
}
void MPROC_NotifyReceivedByte(unsigned char byte) __wparam
{
}
void SR_Service_Prepare(void) __wparam
{
}
void SR_Service_Finish(void) __wparam
{
}
void DIN_NotifyToggle(unsigned char pin, unsigned char pin_value) __wparam
{
}
void ENC_NotifyChange(unsigned char encoder, char incrementer) __wparam
{
}
void AIN_NotifyChange(unsigned char pin, unsigned int pin_value) __wparam
{
}
and nothing working, only one led are lights 7th (doutx4) where im wrong? help please, sorry for bad english