line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package VIC::PIC::P18F14K50; |
2
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
27
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
51
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.31'; |
5
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
6
|
1
|
|
|
1
|
|
3
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
7
|
|
|
|
|
|
|
extends 'VIC::PIC::P18F13K50'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# role CodeGen |
10
|
|
|
|
|
|
|
has type => (is => 'ro', default => 'p18f14k50'); |
11
|
|
|
|
|
|
|
has include => (is => 'ro', default => 'p18f14k50.inc'); |
12
|
|
|
|
|
|
|
# all memory is in bytes |
13
|
|
|
|
|
|
|
has memory => (is => 'ro', default => sub { |
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
flash => 8192, # words |
16
|
|
|
|
|
|
|
SRAM => 768, |
17
|
|
|
|
|
|
|
EEPROM => 256, |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
}); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
has address => (is => 'ro', default => sub { |
22
|
|
|
|
|
|
|
{ # high, low |
23
|
|
|
|
|
|
|
isr => [ 0x0008, 0x0018 ], |
24
|
|
|
|
|
|
|
reset => [ 0x0000 ], |
25
|
|
|
|
|
|
|
range => [ 0x0000, 0x3FFF ], |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
}); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
has banks => (is => 'ro', default => sub { |
30
|
|
|
|
|
|
|
{ |
31
|
|
|
|
|
|
|
count => 16, |
32
|
|
|
|
|
|
|
size => 0x100, |
33
|
|
|
|
|
|
|
gpr => { |
34
|
|
|
|
|
|
|
0 => [ 0x000, 0x0FF], |
35
|
|
|
|
|
|
|
1 => [ 0x100, 0x1FF], |
36
|
|
|
|
|
|
|
2 => [ 0x200, 0x2FF], |
37
|
|
|
|
|
|
|
}, |
38
|
|
|
|
|
|
|
# remapping of these addresses automatically done by chip |
39
|
|
|
|
|
|
|
common => [ [0x000, 0x05F], [0xF60, 0xFFF] ], |
40
|
|
|
|
|
|
|
remap => [], |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
}); |
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |