line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package VIC::PIC::P16F628A; |
2
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
25
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
45
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.31'; |
5
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
6
|
1
|
|
|
1
|
|
4
|
use Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
extends 'VIC::PIC::P16F627A'; |
8
|
|
|
|
|
|
|
# role CodeGen |
9
|
|
|
|
|
|
|
has 'type' => (is => 'ro', default => 'p16f628a'); |
10
|
|
|
|
|
|
|
has 'include' => (is => 'ro', default => 'p16f628a.inc'); |
11
|
|
|
|
|
|
|
has 'memory' => (is => 'ro', default => sub { |
12
|
|
|
|
|
|
|
{ |
13
|
|
|
|
|
|
|
flash => 2048, # words |
14
|
|
|
|
|
|
|
SRAM => 224, |
15
|
|
|
|
|
|
|
EEPROM => 128, |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
}); |
18
|
|
|
|
|
|
|
has 'address' => (is => 'ro', default => sub { |
19
|
|
|
|
|
|
|
{ |
20
|
|
|
|
|
|
|
isr => [ 0x0004 ], |
21
|
|
|
|
|
|
|
reset => [ 0x0000 ], |
22
|
|
|
|
|
|
|
range => [ 0x0000, 0x07FF ], |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
}); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
__END__ |